Status: New
Owner: ----
New issue 1185 by holisme: (new Date()).getTimezoneOffset() returns 0 here
http://code.google.com/p/v8/issues/detail?id=1185
OS: linux debian/sid
Affected versions : 2.5.9.15, 3.0.12.22
scons options : library=shared soname=on snapshot=on shlibtype=hidden
os=linux arch=ia32
CXXFLAGS += -fno-strict-aliasing
CFLAGS += -fno-strict-aliasing
Reproduced with chromium and node :
(new Date()).getTimezoneOffset()
0
On other browsers, it returns -60 because here it's GMT +1, no DST.
Either local_time_offset is not initialized in src/date.js,
either DaylightSavingsOffset is buggy.
This C code :
time_t tv = time(NULL);
struct tm* t = localtime(&tv);
printf("%d", t->tm_gmtoff * 1000);
printf("%d", (t->tm_isdst > 0 ? 3600 * 1000 : 0));
returns :
3600000
0
--
v8-dev mailing list
v8-dev@googlegroups.com
http://groups.google.com/group/v8-dev