Monday, May 20, 2024
 Popular · Latest · Hot · Upcoming
107
rated 0 times [  111] [ 4]  / answers: 1 / hits: 20434  / 11 Years ago, sun, april 14, 2013, 12:00:00

I have a graph that needs to show server up-time against the user's local time. UTC is not acceptable, as it needs to show the user's computer time.



Is there a way to convert the x-axis time to localtime? My current input looks something like this:



[UNIX_TIMESTAMP,1], [UNIX_TIMESTAMP, 2], ...


If not possible in highcharts, how would I convert the above in UTC to in the user's localtime (i.e., offset the UNIX_TIMESTAMP)?


More From » highcharts

 Answers
12

You can set useUTC to false in your global options:



http://api.highcharts.com/highcharts#global.useUTC


[#78913] Friday, April 12, 2013, 11 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
janjadonb

Total Points: 4
Total Questions: 114
Total Answers: 118

Location: Mali
Member since Fri, Dec 3, 2021
3 Years ago
janjadonb questions
;