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

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Thu Mar 10 09:02:10 PST 2016


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

--- Comment #1 from github-bugzilla at puremagic.com ---
Commits pushed to master at https://github.com/D-Programming-Language/phobos

https://github.com/D-Programming-Language/phobos/commit/7ded5fcf686c988c4d26869ac0e16a1fd0e5a446
Rename SimpleTimeZone.to/fromISOString to to/fromISOExtString.

This is per issue# 15654.

https://github.com/D-Programming-Language/phobos/commit/2567a2493a168343be6be3050cd4bef90b320f58
Fix issue# 15654: SysTime.toISOString formats time zones incorrectly.

Previously, it formatted the time zone the same as toISOExtString and
put a colon between the hours and minutes - which is correct for the ISO
extended format, but not the non-extended format. Now, it formats it
correctly per the ISO 9601 standard.

fromISOString temporarily accepts both the extended and non-extended
formats to avoid breaking any programs that have been writing out ISO
strings to read back in later, but eventually, we'll make it so that it
only accepts the non-extended format like it's supposed to.

--


More information about the Digitalmars-d-bugs mailing list