[Mono-bugs] [Bug 53023][Maj] New - US Culture doesn't parse 4 digit years in dates

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Sun, 18 Jan 2004 10:24:08 -0500 (EST)


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 dave-mono@earth.li.

http://bugzilla.ximian.com/show_bug.cgi?id=53023

--- shadow/53023	2004-01-18 10:24:08.000000000 -0500
+++ shadow/53023.tmp.31431	2004-01-18 10:24:08.000000000 -0500
@@ -0,0 +1,48 @@
+Bug#: 53023
+Product: Mono/Class Libraries
+Version: unspecified
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Major
+Component: CORLIB
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: dave-mono@earth.li               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: US Culture doesn't parse 4 digit years in dates
+
+Description of Problem:
+
+If you load the en-US culture, then get it to parse the date "01/01/2002",
+it thinks the year is 2020 not 2002.
+
+Steps to reproduce the problem:
+1. Compile attached yearTest.cs
+2. Run on ICU-enabled mono (I have ICU 2.6.1)
+
+
+Actual Results:
+
+01/01/2002 00:00:00
+1/1/02 12:00:00 a
+1/1/20 12:00:00 a
+Should be: 2002
+Is       : 2020
+
+
+Expected Results:
+01/01/2002 00:00:00
+1/1/2002 12:00:00 AM
+1/1/2002 12:00:00 AM
+Should be: 2002
+Is       : 2002
+
+
+Additional Information:
+Hmm, the "a"/"AM" difference might also be a bug. The Expected results are
+from running it on "Microsoft (R) .NET Framework version 1.1.4322"