Thread overview
[Issue 3178] New: std.date.localTZA never initialised
Jul 21, 2009
MIURA Masahiro
Jul 21, 2009
Brad Roberts
July 15, 2009
http://d.puremagic.com/issues/show_bug.cgi?id=3178

           Summary: std.date.localTZA never initialised
           Product: D
           Version: 2.032
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Phobos
        AssignedTo: nobody@puremagic.com
        ReportedBy: johnch_atms@hotmail.com


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.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
July 21, 2009
http://d.puremagic.com/issues/show_bug.cgi?id=3178


MIURA Masahiro <echochamber@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |echochamber@gmail.com




--- Comment #1 from MIURA Masahiro <echochamber@gmail.com>  2009-07-20 18:20:45 PDT ---
Already reported in 2965, only on Linux though.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
July 21, 2009
http://d.puremagic.com/issues/show_bug.cgi?id=3178


Brad Roberts <braddr@puremagic.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |braddr@puremagic.com
         Resolution|                            |DUPLICATE




--- Comment #2 from Brad Roberts <braddr@puremagic.com>  2009-07-20 19:22:47 PDT ---


*** This issue has been marked as a duplicate of issue 2965 ***

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------