[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 2.4.2.3 sources fail in the
same way
If i call this:
TimeZoneInfo.Local.GetUtcOffset(DateTime.Now);
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-2.4.2.3/mcs/class/System.Core/System/TimeZoneInfo.cs:581
at System.TimeZoneInfo.IsInvalidTime (DateTime dateTime) [0x00029] in /
tmp/mono-2.4.2.3/mcs/class/System.Core/System/TimeZoneInfo.cs:496
at System.TimeZoneInfo.IsDaylightSavingTime (DateTime dateTime)
[0x00000] in /tmp/mono-2.4.2.3/mcs/class/System.Core/System/
TimeZoneInfo.cs:454
at System.TimeZoneInfo.GetUtcOffset (DateTime dateTime) [0x00000] in /
tmp/mono-2.4.2.3/mcs/class/System.Core/System/TimeZoneInfo.cs:387
at Mono.Test.TMisc.Timezone_offset () [0x00000]
Is there something that needs to be set up on Centos for TimeZoneInfo
to function?
thanks,
Arne Claassen
MindTouch
San Diego, CA
http://twitter.com/sdether
More information about the Mono-devel-list
mailing list