[Mono-bugs] [Bug 57566][Wis] New - Default DateTime doesn't match .NET's

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Sat, 24 Apr 2004 12:09:37 -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 niel@bornstein.atlanta.ga.us.

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

--- shadow/57566	2004-04-24 12:09:37.000000000 -0400
+++ shadow/57566.tmp.10319	2004-04-24 12:09:37.000000000 -0400
@@ -0,0 +1,54 @@
+Bug#: 57566
+Product: Mono: Runtime
+Version: unspecified
+OS: Windows XP
+OS Details: also on Linux
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: misc
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: niel@bornstein.atlanta.ga.us               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Default DateTime doesn't match .NET's
+
+Please fill in this template when reporting a bug, unless you know what you
+are doing.
+Description of Problem:
+
+The Mono DateTime.ToString() method returns a string whose format is
+inconsistent with that returned by .NET, and also depends on how it is called.
+
+Steps to reproduce the problem:
+1. Create a test program containing the following code:
+   Console.WriteLine(DateTime.Now);
+   Console.WriteLine("{0}", DateTime.Now);
+2. Compile it and run it using the Monoa and .NET runtime to see different
+results.
+   
+
+Actual Results:
+   (Seem to be platform-dependent. This is on MacOS X and Linux)
+   04/24/2004 11:48:02
+   Saturday, 24 April 2004 11:48:03
+   (and this is on Windows)
+   04/24/04 7:48:25 a
+   Saturday, 24 April 2004 07:48:25
+
+
+Expected Results:
+   04/24/2004 11:48:02 AM
+   04/24/2004 11:48:02 AM
+
+
+How often does this happen? 
+   Consistently
+
+Additional Information:
+   Note that there also seems to be a time zone problem on Windows. These
+machines are set to the same time zone (-0500), yet Windows seems to think
+it's in -0900.