[Mono-dev] Error trying to compile mono on CentOs 5
Timotheus Pokorra
timotheus.pokorra at solidcharity.com
Thu Jun 11 11:45:47 UTC 2015
> Supplementary question - I am trying to load a time zone using:
>
> TimeZoneInfo.FindSystemTimeZoneById("GMT Standard Time")
Try to use TimeZoneInfo.FindSystemTimeZoneById("GMT") instead.
The timezone must exist as a file in /usr/share/zoneinfo
see for details:
https://github.com/mono/mono/blob/mono-4.0.0-branch/mcs/class/corlib/System/TimeZoneInfo.cs#L451
and https://github.com/mono/mono/blob/mono-4.0.0-branch/mcs/class/corlib/System/TimeZoneInfo.cs#L163
hope that helps,
Timotheus
More information about the Mono-devel-list
mailing list