On Apr 10, 8:15 pm, Hanwen <
Hanwe...@gmail.com> 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.