[Mono-bugs] [Bug 40910][Maj] Changed - Bad "Z" mask parsing in DateTime
Fri, 11 Apr 2003 19:36:18 -0400 (EDT)
Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
Changed by email@example.com.
--- shadow/40910 Fri Apr 11 00:35:13 2003
+++ shadow/40910.tmp.18909 Fri Apr 11 19:36:18 2003
@@ -1,13 +1,13 @@
Product: Mono/Class Libraries
@@ -155,6 +155,24 @@
Can someone do regression testing on that patch? My shell is not
working yet ;-).
Also, the specs are very unclear on how to handle 'Z' vs 'z', sp
tells me that it works either way on Windows/MS Runtime. I think we
should just emulate Microsoft on this.
+------- Additional Comments From firstname.lastname@example.org 2003-04-11 19:36 -------
+That patch does not work (it also has a typo ;-).
+I run that program on windows and get:
+~ $ ./dtsp.exe
+Input: 20030407210500Z Mask: yyyyMMddHHmmssZ
+ParseExact (localtime) 07/04/2003 23:05:00
+ToUniversalTime() 07/04/2003 21:05:00
+(notice that my timezone is GMT+2).
+I have a 1 line patch that fixes this the I didn't apply last night
+because some unit test were failing. It turns out that those tests
+also fail without my little patch, so I'll apply it.