Thread overview | |||||||||
---|---|---|---|---|---|---|---|---|---|
|
March 12, 2011 [Issue 5731] New: WindowsTimeZone has offsets from UTC backwards | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=5731 Summary: WindowsTimeZone has offsets from UTC backwards Product: D Version: unspecified Platform: All OS/Version: Windows Status: NEW Severity: normal Priority: P2 Component: Phobos AssignedTo: nobody@puremagic.com ReportedBy: jmdavisProg@gmx.com --- Comment #0 from Jonathan M Davis <jmdavisProg@gmx.com> 2011-03-12 00:29:11 PST --- This program: import std.datetime; import std.stdio; void main() { writeln(SysTime(Date.init, WindowsTimeZone.getTimeZone("Pacific Standard Time"))); writeln(SysTime(Date.init, WindowsTimeZone.getTimeZone("Eastern Standard Time"))); writeln(SysTime(Date.init, WindowsTimeZone.getTimeZone("Greenwich Standard Time"))); writeln(SysTime(Date.init, WindowsTimeZone.getTimeZone("Romance Standard Time"))); } prints this: 0001-Jan-01 00:00:00+08:00 0001-Jan-01 00:00:00+05:00 0001-Jan-01 00:00:00+00:00 0001-Jan-01 00:00:00-01:00 Notice that the offsets are all the reverse of what they're supposed to be (+8 instead of -8, +5 instead of -5, etc.). -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
March 12, 2011 [Issue 5731] WindowsTimeZone has offsets from UTC backwards | ||||
---|---|---|---|---|
| ||||
Posted in reply to Jonathan M Davis | http://d.puremagic.com/issues/show_bug.cgi?id=5731 Jonathan M Davis <jmdavisProg@gmx.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
March 12, 2011 [Issue 5731] std.datetime.SysTime prints UTC offsets backwards | ||||
---|---|---|---|---|
| ||||
Posted in reply to Jonathan M Davis | http://d.puremagic.com/issues/show_bug.cgi?id=5731 Jonathan M Davis <jmdavisProg@gmx.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|WindowsTimeZone has offsets |std.datetime.SysTime prints |from UTC backwards |UTC offsets backwards OS/Version|Windows |All --- Comment #1 from Jonathan M Davis <jmdavisProg@gmx.com> 2011-03-12 03:47:36 PST --- Okay. So, this isn't a WindowsTimeZone problem. It's a problem with SysTime's string functions (toISOExtendedString in the example, but it's the same for all of them) where they get the UTC offset backwards. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
March 14, 2011 [Issue 5731] std.datetime.SysTime prints UTC offsets backwards | ||||
---|---|---|---|---|
| ||||
Posted in reply to Jonathan M Davis | http://d.puremagic.com/issues/show_bug.cgi?id=5731 --- Comment #2 from Jonathan M Davis <jmdavisProg@gmx.com> 2011-03-14 10:52:58 PDT --- Pull Request: https://github.com/D-Programming-Language/phobos/pull/18 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
March 22, 2011 [Issue 5731] std.datetime.SysTime prints UTC offsets backwards | ||||
---|---|---|---|---|
| ||||
Posted in reply to Jonathan M Davis | http://d.puremagic.com/issues/show_bug.cgi?id=5731 Jonathan M Davis <jmdavisProg@gmx.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED --- Comment #3 from Jonathan M Davis <jmdavisProg@gmx.com> 2011-03-21 22:49:23 PDT --- Fixed: https://github.com/D-Programming-Language/phobos/commit/2a9e456628df17cc79b47f95b4ee3e1a4b68e836 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
Copyright © 1999-2021 by the D Language Foundation