javascript - useUTC don't work -


i'm trying have correct time on charts if use useutc = false in code :

success: function(data) {              var options= {                 chart: {                     renderto: 'rendu_graph<?=$instance_graph?>',                     type: 'spline'                 },                 global: {                     useutc: false                 },                 title: {                     text: 'graph des relevés des sondes'                  },                 subtitle: {                     text: ''                 },                 xaxis: {                     type: 'datetime'                  },                 yaxis: {                     title: {                         text: ''                     }                 },                 tooltip: {                     formatter: function () {                         return '<b>' + this.series.name + '</b><br/>' +highcharts.dateformat('%d %b %y %h:%m', this.x)+  ' : ' + this.y;                     }                 },                  series: []               } 

all option works fine still have time stamp 00:00 , hight chart show me 22h00. i'm in gmt+2 (in real +1 it's summer time have gmt+1 +1 => gmt+2)

why happening?

you should useutc this:

highcharts.setoptions({         global: {             useutc: false         }     }); 

Comments

Popular posts from this blog

c# - How Configure Devart dotConnect for SQLite Code First? -

java - Copying object fields -

c++ - Clear the memory after returning a vector in a function -