views:

248

answers:

5

My phone, running Windows Mobile 6, has suddenly decided to drop an hour every time I hook it up to my PC. I tried playing with the timezone settings in the Control Panel, to no avail.

I've come to the conclusion the heart of the problem is in the Daylight Saving configuration of my timezone.

I could not find any utilities to let me edit this on Windows Mobile (ala tzedit in Windows). I've decided to write something of my own, but I cannot find the right keywords to search for! All the variations I can think of for "Windows mobile" and "daylight savings" keep coming back to the changes made in 2007 to the U.S.A DST, and not to an API!

Does anyone have any suggestions which functions I should be looking for? I'd like to write this in C#, but P/Invoke should let me access the regular API stuff, I hope.

UPDATE: I ended up writing the application myself, using the TimeZoneInformation function as suggested below. Thanks!

Another UPDATE [about a 2 weeks later]: If you need something like this, I put the program and source code online at http://shalom.craimer.org/projects/. I hope this save somebody 5 minutes or something.

+1  A: 

Try the TimeZoneInformation class of OpenNetCF.

kgiannakakis
+1  A: 

You can also pinvoke the TimeZoneInformation functions in case you don't want/can't use the OpenNetCF framework.

tomlog
+1  A: 

In my windows mobile phone (european, similar to at&t blackjack II), there is a setting to to that. Otherwise, disable temporarily the setting in ActiveSync to update the time everytimes you sync it

Magnetic_dud
A: 

It some time ago, but if i remember correctly all the TimeZones and which one is currently active is stored within the registry on WinCE.

Just make a search for a key containing TimeZone and you should find it quite easy.

Oliver
They are, but they are encoded in some format I was too lazy to try and reverse engineer. I just ended up using the Windows Mobile's API instead...
scraimer
A: 

Hi,

You need to install the patch both on your desktop PC (the Operating System and Outlook) and your mobile PC device. The link has details about how to do this.

After this it will show the correct time. You may have to adjust any future appointments on your mobile PC that were automatically shifted if they were made on days that now have a different time due to daylight saving. Check these carefully so you are on time!

Andrew
Thanks! I wanted to know how to modify the DST setting myself since I live in a country (Israel) which changes the DST start/end dates once every few years. What's worse, the dates chosen aren't dates in the Gregorian-calendar format, but dates on the Hebrew calendar, so they aren't the same date on the Gregorian calendar every year.
scraimer