www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 15654] New: SysTime.toISOString formats the time zones

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

          Issue ID: 15654
           Summary: SysTime.toISOString formats the time zones incorrectly
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P1
         Component: phobos
          Assignee: nobody puremagic.com
          Reporter: issues.dlang jmdavisProg.com

The ISO Extended format for time zones other than UTC is +hh:mm, -hh:mm, +hh,
or -hh. ISO non-Extended is the same but without the colons. However, currently
SysTime uses colons for non-Extended (it correctly doesn't put the dashes or
colons in the date or time portion, but it still puts the colons in the time
zone portion).

So, we need to fix it so that toISOString does not use colons in the time zone,
and fromISOString should not accept them either, though I think that we're
going to have to accept them for a while in case existing code has been writing
them out with toISOString and saving them to later read in with fromISOString.

--
Feb 07 2016