[Mono-bugs] [Bug 79314][Nor] New - DateTime isn't serialized correctly using BinaryFormatter

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Thu Sep 7 05:31:35 EDT 2006


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 itaibh at gmail.com.

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

--- shadow/79314	2006-09-07 05:31:35.000000000 -0400
+++ shadow/79314.tmp.3280	2006-09-07 05:31:35.000000000 -0400
@@ -0,0 +1,32 @@
+Bug#: 79314
+Product: Mono: Class Libraries
+Version: 1.1
+OS: GNU/Linux [Other]
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: CORLIB
+AssignedTo: mono-bugs at ximian.com                            
+ReportedBy: itaibh at gmail.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: DateTime isn't serialized correctly using BinaryFormatter
+
+When serializing a DateTime variable using BinaryFormatter to a file 
+stream, the file doesn't match the MS.Net format, and causes exception 
+when reading (deserializing) it.
+
+More specifically:
+I created a program on MS.Net that creates an ArrayList filled with 
+objects of a class containing (among other things) a DateTime element. I 
+serialized this ArrayList to a file stream using a BinaryFormatter.
+I then ran that application on linux using mono, reading the same file I 
+created on windows. I got an ArgumentOutOfRangeException for the DateTime 
+element (actually for the TimeSpan inside it).
+
+I am using the DotNet Framework 3.0 on windows (July CTP) and Mono 1.1.17 
+on linux.


More information about the mono-bugs mailing list