I'm running node 0.6.14 on a Joyent machine (OS is a varient of Solaris). 
The timezone is set to US/Central, but the Date object in node doesn't seem 
to recognize this. Below are the outputs of a few different console.logs:

*process.env.TZ*: 'US/Central'

*new Date()*: 'Mon, 09 Apr 2012 04:45:28 GMT'

*new Date().toLocaleString()*: 'Mon Apr 09 2012 05:45:28 GMT+0100 (CST)'

The current US/Central time is actually 'Sun Apr 08 2012 23:45:28 GMT -0500 
(CDT)'. Is this a bug or am I doing something wrong?

-- 
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