[Mono-bugs] [Bug 47720][Wis] New - DateTime.Parse (RFC1123) does not handle timezone

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Mon, 18 Aug 2003 22:47:12 -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 piersh@friskit.com.

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

--- shadow/47720	2003-08-18 22:47:12.000000000 -0400
+++ shadow/47720.tmp.4308	2003-08-18 22:47:12.000000000 -0400
@@ -0,0 +1,37 @@
+Bug#: 47720
+Product: Mono/Class Libraries
+Version: unspecified
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: CORLIB
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: piersh@friskit.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: DateTime.Parse (RFC1123) does not handle timezone
+
+Here's an example:
+
+using System;
+class Test
+{
+	public static void Main (string [] rgszArgs)
+	{
+		DateTime dt = DateTime.Parse ("Sat, 29 Oct 1994 12:00:00 
+GMT");
+		Console.WriteLine (dt);
+	}
+}
+
+On windows, with my timezone set to PDT (pacific + daylight), the above 
+program prints:
+10/29/1994 5:00:00 AM
+
+Whereas on my linux box I get:
+10/29/1994 12:00:00