[Webkit-unassigned] [Bug 120556] Date#getTimezoneOffset should be dynamic
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Sat Aug 31 11:18:09 PDT 2013
https://bugs.webkit.org/show_bug.cgi?id=120556
Zan Dobersek <zandobersek at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |ggaren at apple.com,
| |oliver at apple.com,
| |zandobersek at gmail.com
--- Comment #1 from Zan Dobersek <zandobersek at gmail.com> 2013-08-31 11:17:30 PST ---
In WTF::getLocalTime()[1], localtime_r() is called for platforms using compilers other than MinGW or MSVC to get the necessary time information. This doesn't take the timezone into consideration since tzset() isn't called beforehand and localtime_r() isn't required to call it (like localtime() is)[2].
To avoid that, tzset() should be called, or localtime() should be used instead.
[1] http://trac.webkit.org/browser/trunk/Source/WTF/wtf/DateMath.cpp#L135
[2] http://linux.die.net/man/3/localtime_r
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list