Menu

About DateTime value shown differ 8 hours in china

yxx
2013-01-28
2013-01-28
  • yxx

    yxx - 2013-01-28
    I'm from China,I use the getXAxis.setType(Axis.Type.Date Time) to let the X axis to show point time,and use ToolTip to show the time of point. I find the value of the time of these two type are different, the value shown by tooltip is correct, the XAxis value deffers about 8 hours. I don't know why and API doesn't show something about it. In examples, the problem is also exists. So I thought maybe it relevent to the area time. 
     I hope someone can give me a anwser and a solution.Thank you for reading my question and thank you for your help!
    Waiting for your response
    
     
  • Shawn Quinn

    Shawn Quinn - 2013-01-28

    Greetings! Not sure if this is the issue you're seeing, but can you try doing the following in the HTML page that is hosting your GWT module:

        <script type="text/javascript" language="javascript">
            $(function() {
                Highcharts.setOptions({
                    global: {
                        useUTC: false
                    }
                });
            });
        </script>
    

    Additional details here:

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

    Keep us posted on what you find...

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.