[Mono-dev] TimeZone and CurrentTimeZone

Atsushi Eno atsushi at ximian.com
Tue Sep 13 16:31:33 EDT 2005


Hi,

> Hello everyone,
> 
> I'm getting an exception trying to send an object of type DateTime from
> a Linux machine running Mono to a Windows one running .Net.  The 
> exception is "Type System.CurrentTimeZone is not marked as 
> Serializable."  System.TimeZone is supposedly serializable, but called 
> System.TimeZone.CurrentTimeZone returns something that isn't serializable.
> 
> Interestingly enough, when I went in and marked the type as 
> [Serializable] and rebuild mono, I get an error deserializing the 
> DateTime object on Windows (it doesn't recognize the type of the 
> CurrentTimeZone object).
> 
> What's the status of this class?  Is this currently an expected issue?

No, please file a bug for this issue on bugzilla. I'll take care of it
when I finish improvments on this class (it's kinda going on).

Thanks
Atsushi Eno





More information about the Mono-devel-list mailing list