www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 15376] New: The time zone name conversions should not be


          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 puremagic.com
          Reporter: issues.dlang 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.

Nov 22 2015