[Mono-dev] TimeZoneInfo throwing Object reference not set to an instance of an object but only on Centos

Arne Claassen arnec at mindtouch.com
Thu Oct 15 01:30:23 EDT 2009

I ran into what i thought was a bug with an earlier version of 2.4,  
but not think it must be a configuration issue, since it works with  
older and newer builds of 2.4 on Debian and Mac OS X, but my old  
centos 2.4 build and one i just did from sources fail in the  
same way

If i call this:


i get:

3) Mono.Test.TMisc.Timezone_offset : System.NullReferenceException :  
Object reference not set to an instance of an object
at System.TimeZoneInfo.GetApplicableRule (DateTime dateTime) [0x0009b]  
in /tmp/mono-
at System.TimeZoneInfo.IsInvalidTime (DateTime dateTime) [0x00029] in / 
at System.TimeZoneInfo.IsDaylightSavingTime (DateTime dateTime)  
[0x00000] in /tmp/mono- 
at System.TimeZoneInfo.GetUtcOffset (DateTime dateTime) [0x00000] in / 
at Mono.Test.TMisc.Timezone_offset () [0x00000]

Is there something that needs to be set up on Centos for TimeZoneInfo  
to function?

Arne Claassen

San Diego, CA

More information about the Mono-devel-list mailing list