D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 2965 - std.date: timezone not initialized
Summary: std.date: timezone not initialized
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: phobos (show other issues)
Version: D2
Hardware: All All
: P2 normal
Assignee: Andrei Alexandrescu
URL:
Keywords:
: 3178 (view as issue list)
Depends on:
Blocks:
 
Reported: 2009-05-12 01:02 UTC by MIURA Masahiro
Modified: 2015-06-09 01:26 UTC (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description MIURA Masahiro 2009-05-12 01:02:28 UTC
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 Brad Roberts 2009-07-20 19:22:47 UTC
*** Issue 3178 has been marked as a duplicate of this issue. ***
Comment 2 Andrei Alexandrescu 2010-09-26 16:16:24 UTC
http://www.dsource.org/projects/phobos/changeset/2064