Bug 3178 – std.date.localTZA never initialised

Status
RESOLVED
Resolution
DUPLICATE
Severity
normal
Priority
P2
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2009-07-15T03:59:00Z
Last change time
2015-06-09T01:26:47Z
Assigned to
nobody
Creator
johnch_atms

Comments

Comment #0 by johnch_atms — 2009-07-15T03:59:54Z
std.date.toString always returns an incorrect result because localTZA is not being initialised. This is because std.datebase isn't referenced anywhere, and thus it's constructor, which would otherwise call std_date_static_this, never runs. A workaround for client code is to import std.datebase.
Comment #1 by echochamber — 2009-07-20T18:20:45Z
Already reported in 2965, only on Linux though.
Comment #2 by braddr — 2009-07-20T19:22:47Z
*** This issue has been marked as a duplicate of issue 2965 ***