Bug 2965 – std.date: timezone not initialized

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2009-05-12T01:02:00Z
Last change time
2015-06-09T01:26:26Z
Assigned to
andrei
Creator
echochamber

Comments

Comment #0 by echochamber — 2009-05-12T01:02:28Z
std.date.toString always returns "... GMT+0000", regardless of the actual timezone. Looking at src/phobos/std/date.d, it looks like the variable 'localTZA' is not initialized, because std_date_static_this() is never called. As a klagde, 'import datebase' calls the function and thus fixes the problem.
Comment #1 by braddr — 2009-07-20T19:22:47Z
*** Issue 3178 has been marked as a duplicate of this issue. ***
Comment #2 by andrei — 2010-09-26T16:16:24Z