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)?
You can set useUTC to false in your global options:
http://api.highcharts.com/highcharts#global.useUTC
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With