Thread overview
[Issue 15654] SysTime.toISOString formats the time zones incorrectly
Aug 08, 2017
Jonathan M Davis
Jan 03, 2020
berni44
Dec 17, 2022
Iain Buclaw
March 10, 2016
https://issues.dlang.org/show_bug.cgi?id=15654

--- Comment #1 from github-bugzilla@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.

--
March 10, 2016
https://issues.dlang.org/show_bug.cgi?id=15654

github-bugzilla@puremagic.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--
March 19, 2016
https://issues.dlang.org/show_bug.cgi?id=15654

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

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

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

--
August 08, 2017
https://issues.dlang.org/show_bug.cgi?id=15654

Jonathan M Davis <issues.dlang@jmdavisProg.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|FIXED                       |---

--- Comment #3 from Jonathan M Davis <issues.dlang@jmdavisProg.com> ---
It looks like I screwed up and only fixed the fromISOString portion of this so that it accepted the correct type without actually fixing what was emitted.

--
January 03, 2020
https://issues.dlang.org/show_bug.cgi?id=15654

berni44 <bugzilla@d-ecke.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bugzilla@d-ecke.de

--- Comment #4 from berni44 <bugzilla@d-ecke.de> ---
Could you provide an example?

I'm currently not sure if this is fixed or still a bug or not an issue anymore, because when I use toISOString, no timezone is printed at all...

--
December 17, 2022
https://issues.dlang.org/show_bug.cgi?id=15654

Iain Buclaw <ibuclaw@gdcproject.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P1                          |P3

--