Comment #3 on issue 1386 by [email protected]: new Date() returns invalid
time zone offset, and hour field
http://code.google.com/p/v8/issues/detail?id=1386
I embedded V8 into my own executable, following guides from
http://code.google.com/apis/v8/embed.html and bundle sample codes
(process.cc, shell.cc, lineprocessor.cc).
I've tried these:
var d = new Date(2039, 01, 01, 00, 00, 00, 000); // Tue Feb 01 2039
00:00:00 GMT+0000 (Malay Peninsula Standard Time)
var d1 = new Date(); // Wed May 25 2011 17:59:38 GMT+0000 (Malay Peninsula
Standard Time)
I've also tried changing my system time-zone to EST (Eastern Standard
Time), these are the results:
var d = new Date(2039, 01, 01, 00, 00, 00, 000); // Tue Feb 01 2039
00:00:00 GMT+0000 (Eastern Standard Time)
var d1 = new Date(); // Wed May 25 2011 18:03:55 GMT+0000 (Eastern Standard
Time)
// Correct time should be 2:05:44PM and GMT-05:00
I've tried compiling my exact codes under Ubuntu, it show correct hour
field, and correct time zone offset.
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev