Hi David,

Welcome to Timeline!

Please set the timezone in your band creation call to 1 and let us know if that 
fixes things.

eg 
                Timeline.createBandInfo({
                    width:          "10%", 
                    intervalUnit:   Timeline.DateTime.DECADE, 
                    intervalPixels: 200,
                    date:           d,
                    theme:          theme,
                    timeZone : 1
                }),


Thanks,

Larry


________________________________
From: David Welton <[email protected]>
To: [email protected]
Sent: Thursday, March 26, 2009 7:09:56 PM
Subject: Re: year oddness


> However, it seems to have 2007 and 2008 as the years displayed, even
> though the data go from 2007 to 2009.  Shouldn't it have 2008 and 2009
> on the year markers?

Here's the problem:

In geometry.js, it rounds down the year, and then does getUTCFullYear.
But there seems to be an 'issue' with that:

>>> d = new Date('Mon Jan 01 2007 00:00:00 GMT+0100'); d.getUTCFullYear();
2006
>>> d = new Date('Mon Jan 01 2007 00:00:00'); d.getUTCFullYear();
2006
>>> d = new Date('Mon Jan 01 2007 00:00:01'); d.getUTCFullYear();
2006
>>> d = new Date('Mon Jan 01 2007 02:00:0'); d.getUTCFullYear();
2007

At least, it seems like that's the problem to me.

-- 
David N. Welton

http://www.welton.it/davidw/

http://www.dedasys.com/
Sent from Padua, Veneto, Italy


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"SIMILE Widgets" 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/simile-widgets?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to