[Mono-bugs] [Bug 60970][Wis] Changed - FileInfo.LastWriteTime fails for dates older thatn 1970

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Tue, 6 Jul 2004 10:51:35 -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 dick@ximian.com.


--- shadow/60970	2004-07-06 10:20:05.000000000 -0400
+++ shadow/60970.tmp.11701	2004-07-06 10:51:35.000000000 -0400
@@ -1,13 +1,13 @@
 Bug#: 60970
 Product: Mono: Class Libraries
 Version: unspecified
 OS: unknown
 OS Details: 
-Status: NEW   
+Status: RESOLVED   
+Resolution: FIXED
 Severity: Unknown
 Priority: Wishlist
 Component: CORLIB
 AssignedTo: mono-bugs@ximian.com                            
 ReportedBy: ianm@activestate.com               
 QAContact: mono-bugs@ximian.com
@@ -62,6 +62,18 @@
 time to somthing that old anyway. Interestingly on ms.net doing the same
 thing gives a System.IO exception 'The paramater is incorrect' for any date
 value before 1980. Guess setting things to old dates isn't a good idea.
 ------- Additional Comments From carloscesario@gmail.com  2004-07-06 10:20 -------
 "Works for me under Mono 1.0 (Linux and Windows)"
+------- Additional Comments From dick@ximian.com  2004-07-06 10:51 -------
+I think the windows refusal to set dates before 1980 is actually
+filesystem-specific.  IIRC the fat fs cant handle earlier dates, but
+ntfs certainly can here.
+Note that the test case depends on timezone.  You need to set a
+zone sufficiently far east to see the bug.
+I've set the limit on linux to be (time_t)0 (ie 1970) for now.
+Fixed in CVS HEAD and 1.0