> 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