Reputation: 121
I've been creating a timeline with highcharts. Everything has been fine so far except a problem with the date labels on the x axis displaying incorrectly.
I have been over the code again and again and I cant seem to find the issue here.
I have created a demonstration of the issue here (jsFiddle)
I was wondering if it's something to do with the way I'm defining dates:
Date.UTC(2013,04,30,01,00,00)
I really cant explain what is happening, the dates that go in, are not the dates that are displayed on the graph.
Any help would be fantastic, because I'm out of ideas!
Upvotes: 0
Views: 726
Reputation: 121
Sebastian Bochan - "It related with fact, that in Date.UTC you should use 3 as index of months, instead of 4, because months are indexed from 0, not 1."
Cheers for the answer!
Upvotes: 1