Daylight Saving causing problems with highcart











up vote
0
down vote

favorite












We are using a HighCharts to display some data with the x-axis being a DateTime; we need useUTC to be set to false Highcharts.setOptions({ global: { useUTC: false } });



When daylight saving stopped (OCT 27) we discovered that the hour 23:00-00:00 was repeated twice : with the second one displaying empty data. All the following data are shifted one hour forward.



Is there an easy way to handle this in HighCharts?










share|improve this question


















  • 3




    That's the problem with daylight savings - if you don't use UTC you'll have two hours of the day that are the same. Not a HighCharts problem, just a result of trying to visualize that data.
    – gunr2171
    Nov 9 at 15:38






  • 3




    Your mistake is not using UTC. That means you will have to deal with timezones, rather then leaving it to he (propably better) existing code. And that way lies madness: youtube.com/watch?v=-5wpm-gesOY My advise is to always store, retrieve and send datetimes in UTC.
    – Christopher
    Nov 9 at 15:46

















up vote
0
down vote

favorite












We are using a HighCharts to display some data with the x-axis being a DateTime; we need useUTC to be set to false Highcharts.setOptions({ global: { useUTC: false } });



When daylight saving stopped (OCT 27) we discovered that the hour 23:00-00:00 was repeated twice : with the second one displaying empty data. All the following data are shifted one hour forward.



Is there an easy way to handle this in HighCharts?










share|improve this question


















  • 3




    That's the problem with daylight savings - if you don't use UTC you'll have two hours of the day that are the same. Not a HighCharts problem, just a result of trying to visualize that data.
    – gunr2171
    Nov 9 at 15:38






  • 3




    Your mistake is not using UTC. That means you will have to deal with timezones, rather then leaving it to he (propably better) existing code. And that way lies madness: youtube.com/watch?v=-5wpm-gesOY My advise is to always store, retrieve and send datetimes in UTC.
    – Christopher
    Nov 9 at 15:46















up vote
0
down vote

favorite









up vote
0
down vote

favorite











We are using a HighCharts to display some data with the x-axis being a DateTime; we need useUTC to be set to false Highcharts.setOptions({ global: { useUTC: false } });



When daylight saving stopped (OCT 27) we discovered that the hour 23:00-00:00 was repeated twice : with the second one displaying empty data. All the following data are shifted one hour forward.



Is there an easy way to handle this in HighCharts?










share|improve this question













We are using a HighCharts to display some data with the x-axis being a DateTime; we need useUTC to be set to false Highcharts.setOptions({ global: { useUTC: false } });



When daylight saving stopped (OCT 27) we discovered that the hour 23:00-00:00 was repeated twice : with the second one displaying empty data. All the following data are shifted one hour forward.



Is there an easy way to handle this in HighCharts?







c# highcharts dst






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Nov 9 at 15:32









A.J Alhorr

11214




11214








  • 3




    That's the problem with daylight savings - if you don't use UTC you'll have two hours of the day that are the same. Not a HighCharts problem, just a result of trying to visualize that data.
    – gunr2171
    Nov 9 at 15:38






  • 3




    Your mistake is not using UTC. That means you will have to deal with timezones, rather then leaving it to he (propably better) existing code. And that way lies madness: youtube.com/watch?v=-5wpm-gesOY My advise is to always store, retrieve and send datetimes in UTC.
    – Christopher
    Nov 9 at 15:46
















  • 3




    That's the problem with daylight savings - if you don't use UTC you'll have two hours of the day that are the same. Not a HighCharts problem, just a result of trying to visualize that data.
    – gunr2171
    Nov 9 at 15:38






  • 3




    Your mistake is not using UTC. That means you will have to deal with timezones, rather then leaving it to he (propably better) existing code. And that way lies madness: youtube.com/watch?v=-5wpm-gesOY My advise is to always store, retrieve and send datetimes in UTC.
    – Christopher
    Nov 9 at 15:46










3




3




That's the problem with daylight savings - if you don't use UTC you'll have two hours of the day that are the same. Not a HighCharts problem, just a result of trying to visualize that data.
– gunr2171
Nov 9 at 15:38




That's the problem with daylight savings - if you don't use UTC you'll have two hours of the day that are the same. Not a HighCharts problem, just a result of trying to visualize that data.
– gunr2171
Nov 9 at 15:38




3




3




Your mistake is not using UTC. That means you will have to deal with timezones, rather then leaving it to he (propably better) existing code. And that way lies madness: youtube.com/watch?v=-5wpm-gesOY My advise is to always store, retrieve and send datetimes in UTC.
– Christopher
Nov 9 at 15:46






Your mistake is not using UTC. That means you will have to deal with timezones, rather then leaving it to he (propably better) existing code. And that way lies madness: youtube.com/watch?v=-5wpm-gesOY My advise is to always store, retrieve and send datetimes in UTC.
– Christopher
Nov 9 at 15:46



















active

oldest

votes











Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53228721%2fdaylight-saving-causing-problems-with-highcart%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown






























active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes
















draft saved

draft discarded




















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.





Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


Please pay close attention to the following guidance:


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53228721%2fdaylight-saving-causing-problems-with-highcart%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







這個網誌中的熱門文章

Academy of Television Arts & Sciences

L'Équipe

1995 France bombings