Set TimeZone
- From: Martin Karlberg
- Date: Wed, 04 Jul 2007 04:57:27 -0700
After I use the code in the OpenNETCF Smart Device Framework to set the timezone, the TimeZone.CurrentTimeZone.GetDaylightChanges() no longer returns correct dates, even after restarting the application.
code looks pretty much like this:
TimeZoneCollection tzColl = new TimeZoneCollection();
tzColl.Initialize(TimeZoneCollection.ALL_TIMEZONES_LIST);
for (int i = 0; i < tzColl.Count; i++)
{
TimeZoneInformation tzi = (TimeZoneInformation)tzColl[i];
if (tzi.StandardName == "W. Europe Standard Time")
{
DateTimeEx.SetTimeZoneInformation(tzi);
}
}
But obviously this is not enough. Any ideas on how to get the DaylightChanges back to working?
Martin K
EggHeadCafe.com - .NET Developer Portal of Choice
http://www.eggheadcafe.com
.
- Follow-Ups:
- Re: Set TimeZone
- From: Martin Karlberg
- Re: Set TimeZone
- Prev by Date: Re: WZCAPI question (relating to WZCSetInterface)
- Next by Date: PXA270 RTC
- Previous by thread: How do I stop a Winsock from buffering characters?
- Next by thread: Re: Set TimeZone
- Index(es):
Relevant Pages
|