[Issue 15376] New: The time zone name conversions should not be compiled into Phobos

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Sun Nov 22 19:20:08 PST 2015


https://issues.dlang.org/show_bug.cgi?id=15376

          Issue ID: 15376
           Summary: The time zone name conversions should not be compiled
                    into Phobos
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: phobos
          Assignee: nobody at puremagic.com
          Reporter: issues.dlang at jmdavisProg.com

As it stands, every time that Microsoft changes the list of time zones that
they have, tzDatabaseNameToWindowsTZName and windowsTZNameToTZDatabaseName in
std.datetime have to be updated, and it's proven to be a maintenance problem
(not to mention that it means that older releases won't work properly with
Windows machines that have been properly updated). So, we should introduce a
way to get those conversions at runtime rather than compile time (presumably by
reading in the windowsZones.xml file that the conversions come from in the
first place) and then deprecate tzDatabaseNameToWindowsTZName,
windowsTZNameToTZDatabaseName, and TimeZone.getTimeZone.

--


More information about the Digitalmars-d-bugs mailing list