I'm using Dygraph to show nice graphs of my data. My data has the following structure:
data = [[new Date(\"2015-10-08T11:23:44.712\"),0.01,0.06,0.02],[new Date etc.
This data is supposed to display UTC time, so in the above example it's 11:23. I am living in the Netherlands, where it's UTC +2 in summer time, so the local time is 13:23.
When I check my Dygraph with this data in Chrome, it displays 13:23. However, when I open the same data/graph in Internet Explorer (9, 10 or 11), it displays 11:23 instead of 13:23. It seems to display UTC, not the local.
I have tried to find an answer, but am so far unable to find the reason for the different behavior per browser. To be clear: the data supplied to the graph is always the same, the display is not.
http://dygraphs.com/tests/labelsDateUTC.html was a nice example of UTC display. However, setting labelsUTC
to either true
or false
does not change the display of the time in Chrome, nor IE.
I hope someone can point me in the right direction.