This is how it works (or rather how it breaks):

1. The bubble is filled up by the function "fillInfoBubble" at the end of
    http://simile.mit.edu/timeline/api/scripts/sources.js
2. ... which calls the function "fillTime" in the same file
3. ... which calls
    labeller.labelPrecise(...)
4. The argument "labeller" is passed in from 
Timeline.DurationEventPainter.prototype._showBubble at the end of
    http://simile.mit.edu/timeline/api/scripts/painters.js
5. ... which comes from the band.
6. The band gets its labeller in its parameters at construction time or 
creates its own labeller. Search for
    timeline.getUnit().createLabeller(this._locale, this._timeZone)
in this file
    http://simile.mit.edu/timeline/api/scripts/timeline.js
7. labelPrecise is implemented in
    http://simile.mit.edu/timeline/api/scripts/labellers.js
It removes the time zone offset and then generates a string by calling 
toUTCString, which always slaps on "GMT" at the end. This is clearly not 
the right thing to do. If anyone has a patch, please send it to me! Thanks.

Hope that helps,

David

D. Taylor Singletary wrote:
> I also would like to know how this is set, as I've tried everything I 
> can think of. I set GMT offset as a timeZone: variable on my bands.. 
> doesn't matter if I'm using a XML or JSON datasource, the datetimes 
> displayed in the bubbles are always reflected as GMT.
>
> Looking forward to a hint! Thanks
>
> D. Taylor Singletary,
> Reality Technician
>
> On 3/2/07, [EMAIL PROTECTED] 
> <mailto:[EMAIL PROTECTED]>* <[EMAIL PROTECTED] 
> <mailto:[EMAIL PROTECTED]>> wrote:
>
>     Hello all,
>     Where is the date/time set in the bubble?
>
>     I have a problem where the date that I pass into timeline is like so:
>     Fri Mar 02 2007 09:30:00 GMT-0600
>
>     It displays correctly on timeline but in the bubble it is
>     displayed like so:
>     Fri, 02 Mar 2007 09:30:00 GMT
>
>     it drops the timezone offset.
>
>     For an example:
>
>     Now if you go to
>     http://simile.mit.edu/timeline/docs/create-timelines.html
>     <http://simile.mit.edu/timeline/docs/create-timelines.html> and scroll
>     down to Hot Zones, the bubble shows the proper time converted as
>     compared to the info passed in:
>
>
>     Passed in from event source: <event start="Aug 02 2006 08:35:00
>     GMT-0500" title="Board plane in Boston">
>             </event>
>
>
>     Bubble displays: Wed, 02 Aug 2006 13:35:00 GMT
>
>     Now if you scroll down to the next timeline, the bubble shows the time
>     passed in with no offset or conversion.
>     This is the problem I have.
>
>     Any ideas?
>     Thanks in advance.
>
>
>
>
>
>     _______________________________________________
>     General mailing list
>     [email protected] <mailto:[email protected]>
>     http://simile.mit.edu/mailman/listinfo/general
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> General mailing list
> [email protected]
> http://simile.mit.edu/mailman/listinfo/general
>   

_______________________________________________
General mailing list
[email protected]
http://simile.mit.edu/mailman/listinfo/general

Reply via email to