Timestamp in Highstocks Time Zone

I am trying to populate a graph using the highstocks library. I set the era time as an input for the x axis. I can generate the chart successfully, but the problem is that the time of the era converted to highstock does not match my time zone. for instance

The time of my era of input: 1347497100000

Presented result after conversion: Thu, 13 Sep 2012 00:45:00 GMT

Expected Result: Wed Sep 12 2012 17:45:00 GMT-0700

This is a wrong match in the time zone - this is the wrong value that is being displayed right now.

I also tried setting this property, but with no luck:

global: {
    useUTC: false
},

I am in the Pacific time zone. When I tried to do:

console.log(new Date)

from the same script, it returns me time in peacetime.

, ?

+5
2

, global.useUTC api

, . , lang, Highcharts.setOptions .

Highcharts.setOptions({
    global: {
        useUTC: false
    }
});

, , - , Highcharts , ,

var chart=new Highcharts.StockChart({
{
  ...
    global: {
        useUTC: false
    }
  ...
});

Highcharts.setOptions,
/ | Highchart Highstock @jsFiddle

+9

, .

, 1000, .

, .

0

All Articles