Please sign in to comment.
set the timezone explicitly on new time.Date instances
V8 seems to have this strange behavior where the TZ variable is only checked once for the Date object, and if you change it while V8 is running, then strange stuff happens: > new Date() Fri Nov 23 2012 09:54:45 GMT-0800 (PST) > time.tzset('UTC') > new Date() Fri Nov 23 2012 09:54:57 GMT-0800 (UTC) > new Date().getTimezoneOffset() 480 Notice how it *partially* changes over. The timezone abbreviation string changes correctly, however the internal date of the instance itself is still incorrectly in PST timezone (-0800). WTF V8...
- Loading branch information...