[Issue 15654] New: SysTime.toISOString formats the time zones incorrectly

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Sun Feb 7 19:02:15 PST 2016


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

--


More information about the Digitalmars-d-bugs mailing list