On Wed, May 16, 2012 at 4:44 AM, SethP <[email protected]> wrote:
> Thanks, Ben - I figured you'd be the one to pick this up. (btw - how do you
> pronounce your name?)

'North house' is a close enough approximation. :-)

> The reason I think it may be a bug is that the output of the test script
> (sans assertion) is as follows:
>
> Tue May 15 2012 19:21:53 GMT-0700 (PDT)
> 1326405600000 Thu Jan 12 2012 14:00:00 GMT-0500 (EST)
> 1326405600000 Thu Jan 12 2012 17:00:00 GMT-0500 (EST)
>
> Two dates have identical getTime() values but different hours with the
> *same* tzinfo (EST). Regardless of which TZ is the current one, that should
> never happen, correct? It's a matter of internal consistency; one of those
> lines has got to be wrong. (The bottom line is correct; the date appears to
> be parsed as though the TZ is still America/LA)

Yes, that's a V8 bug. It's mostly* fixed in master.

Your example still won't work quite right (the assertion will fail)
unless you `export TZ="America/New_York"` before running the script.
That can't really be helped, I'm afraid.

* There is still a bug in timezone handling on Solaris.

-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" 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/nodejs?hl=en?hl=en

Reply via email to