Connecting Tech Pros Worldwide Forums | Help | Site Map

Setting timezone in Windows CE4.0 .NET1.1

Member
 
Join Date: Oct 2008
Posts: 50
#1: Jan 20 '09
Hello,

I'm looking for a way to set the timezone on a mobile (windows CE4.0). I know there is no specific function in .NET1.1 and by looking on pinvoke.net: HomePage (misc) between coredll I understand that there is no API function to do the trick.

The scenario is the following: I have a server which sends out his dateTime information using the following format "yyyyMMdd zzz" . This returns the date + timezone. This reaches the mobile as a string. There I try to parse it exactly back to this format. The problem is that it doesn't save the timezone. It takes the timezone on the mobile device.

What would be the best way to sync the timezone on the mobile device with the timezone on the server?

Kind regards,
Sven

Plater's Avatar
Moderator
 
Join Date: Apr 2007
Location: New England
Posts: 7,161
#2: Jan 20 '09

re: Setting timezone in Windows CE4.0 .NET1.1


Do you have the date command (open up a command window on the device and type it) available to you? You could just run that command. It takes the format MM-dd-yyyy
markmcgookin's Avatar
Moderator
 
Join Date: Dec 2006
Location: Northern Ireland / England
Posts: 546
#3: Jan 21 '09

re: Setting timezone in Windows CE4.0 .NET1.1


What about the setTimeZone function?

SetTimeZoneInformation Function (Windows)
Reply