[Mono-bugs] [Bug 37225][Wis] New - DateTime.Now and DateTime.Today returns different results

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
Fri, 24 Jan 2003 21:22:28 -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 duncan@ximian.com.

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

--- shadow/37225	Fri Jan 24 21:22:28 2003
+++ shadow/37225.tmp.19678	Fri Jan 24 21:22:28 2003
@@ -0,0 +1,43 @@
+Bug#: 37225
+Product: Mono/Class Libraries
+Version: unspecified
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: CORLIB
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: duncan@ximian.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: DateTime.Now and DateTime.Today returns different results
+
+Test case:
+
+using System;
+
+class X
+{
+	static void Main ()
+	{
+		Console.WriteLine ("DateTime.Now");
+		Console.WriteLine (DateTime.Now.ToString ("D"));
+		Console.WriteLine ("DateTime.Today");
+		Console.WriteLine (DateTime.Today.ToString ("D"));
+
+	}
+}
+
+Output:
+
+diphthong:~ $ date 
+Fri Jan 24 21:21:57 EST 2003
+diphthong:~ $ mono cal.exe 
+DateTime.Now
+Friday, 24 January 2003
+DateTime.Today
+Saturday, 25 January 2003