Hi,So to see that I get the problem. The chart displays the times as local, so if you have a date of local time 10, it will show up like 10 in the chart, but you say that when you set the visible range to 10 you see something else?
Regards, VizGuy On Wed, Apr 22, 2009 at 3:38 PM, Hanwen <[email protected]> wrote: > > So no one ever meet this timezone problem when controlling the chart > range? > I need some suggestions, thanks. > > On Apr 10, 8:15 pm, Hanwen <[email protected]> wrote: > > Dear all, > > > > I got a problem with the date object in annotated timeline, > > and I wonder if you had similar problems before and had a solution. > > > > I am using Firefox 3.0.6 in Taiwan, where the timezone is GMT+8. > > So if I have a data object s = new Date(2008, 11, 19, 12, 37, 36) and > > print it with alert, it says "Fri Dec 19 2008 12:37:36 GMT+0800 > > (Taipei Standard Time)." > > If I use setVisibleChartRange(s, t), the range starts from "Fri Dec 19 > > 2008 12:37:36 GMT+0800 (Taipei Standard Time)." > > > > And I create a dataset whose first element starts from Date(2008, 11, > > 19, 12, 37, 36). > > But when the chart is ready, and I call getVisibleChartRange, the > > start time becomes "Fri Dec 19 2008 20:37:36 GMT+0800 (Taipei Standard > > Time)", which adds another 8 hours to the time I set. > > > > So I am confused now whether I should give local time in the dataset > > or the UTC time so the visualization cn be constructed correctly. > > And how can I set a date object to a specific timezone? > > > > I appreciate your help if you can provide any help. > > My code is at the following link. > http://clover.csie.org/~chanwen/MyLBS/annotatedTimeline.html > > You can test it as a reference. > > > > Thanks for your help. > > > > Hanwen > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Visualization API" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en -~----------~----~----~----~------~----~------~--~---
