22 messages in com.googlegroups.google-visualization-api[visualization-api] Re: Date for anno...
FromSent OnAttachments
Jeremiah Elliott12 Jun 2008 12:06 
VizGuy (Google)15 Jun 2008 04:40 
Jason17 Jun 2008 11:39 
Jeremiah Elliott17 Jun 2008 14:51 
Jason17 Jun 2008 19:34 
Jeremiah Elliott18 Jun 2008 07:18 
Jason Brechin18 Jun 2008 07:33 
Jeremiah Elliott18 Jun 2008 07:43 
Google VizGuy24 Jun 2008 03:38 
Jeremiah Elliott24 Jun 2008 06:04 
shayne (mabulu)26 Jun 2008 23:13 
shayne (mabulu)26 Jun 2008 23:13 
Jeremiah Elliott27 Jun 2008 06:06 
Jeremiah Elliott27 Jun 2008 06:27 
Jason Brechin27 Jun 2008 07:50 
Uwe Maurer01 Jul 2008 09:43 
shayne (mabulu)01 Jul 2008 09:56 
Uwe Maurer01 Jul 2008 12:07 
Jeremiah Elliott15 Jul 2008 11:04.html, .java, .html
Ray Cromwell15 Jul 2008 11:13 
Ray Cromwell15 Jul 2008 11:16 
Jeremiah Elliott15 Jul 2008 12:27 
Subject:[visualization-api] Re: Date for annotated time line
From:Uwe Maurer (uwe.@gmail.com)
Date:07/01/2008 09:43:22 AM
List:com.googlegroups.google-visualization-api

On Jun 27, 4:51 pm, "Jason Brechin" <brec@gmail.com> wrote:

That makes sense, since the Java Date object has more information in it than the JS Date object seems to have.  I've never used the GWT before, so I'm not sure how to work around this.

A javascript Date object is different from a GWT Date object.

I suggest to convert the Date object into a timestamp value (date.getTime()) when passing it between GWT and javascript. And then use "new Date(timestamp)" to get the Date object back. The timestamp value can be passed between GWT/javascript as an int without problems. (not long, since javascript doesn't have this and GWT emulates it using an array of two doubles)

Thanks, Uwe