The time zone situation, if you follow any of the old threads on this
newsgroup via Google, is rather bad on the PPC. Somewhere, there is the
information which is used to display the selection information for the time
zones in the control panel, but it's not in the same location as it is in
the Windows CE (non-PPC), case. The OpenNETCF code has the ability to
enumerate the time zones, extract the 'bias' values, and select a new time
zone, but it will presently only work on non-PPC devices. If you figure out
where the information is stored on PPC, *let me know*, so I can adjust the
code.
If you are running on PPC and for some reason you can't just tell the user
to open the control panel and change the settings manually, you'll have to
figure out the entries for the SetTimeZoneInformation() call yourself. Most
of them are pretty clear. Here are the right ones for the Central European
time zone at GMT+1 (Sarajevo, Warsaw, etc.):
-----
Bias = -60
StandardName = "Central European Standard Time"
StandardDate:
wYear = 0
wMonth = 10
wDayOfWeek = 0
wDay = 5
wHour = 3
wMinute = 0
wSecond = 0
wMilliseconds = 0
DaylightName = "Central European Daylight Time"
DaylightDate:
wYear = 0
wMonth = 3
wDayOfWeek = 0
wDay = 5
wHour = 2
wMinute = 0
wSecond = 0
wMilliseconds = 0
DaylightBias = -60