Set up your time zone with Compact Framework for Windows Mobile 6

First, the background: I have a .NET application that runs in kiosk mode on Windows Mobile 6 devices (IPAQ 210). Our software actually tracks the user's time zone, regardless of the operating system, so we calculate the displayed time based on their time zone settings from UTC. As many may know, genuine kiosk mode is not easy to reach on Windows Mobile 6, and the last puzzle piece for this application suppresses DST notifications from the OS.

My preferred solution for this would be to set the device time zone for GMT Casablanca, as it does not comply with DST. However, I found that, despite all my efforts (including using the OpenNETCF library), I can not reliably fix the time zone during the device preparation process. In date / time applets in the OS, this is similar to GMT time zone, but time is one of what should be for this time zone.

Can someone give advice on how to change the time zone correctly? Or, better yet, does anyone know how to disable DST notification on WinMob 6?

+5
source share
5 answers

- CF ( , ). , , CF . API- GetSystem/LocalTime, , DateTime.Now .

2004 .

​​ TimezoneInfo.ClearCachedInfo, CF.

+3

. HKLM\Time\TimeZoneInformation. , pinwoke: SetTimeZoneInformation.

+1

, eVC, CF. , , , DST , DST. , , , , . .

, . () .

+1

DST Windows Mobile 5. , .NET, API SetSystemTime , DateTime.UtcNow ( ). , , . , , .

, , :

  • WinMo , .
  • The problem is with the content, not the OS (the problem I saw was on iPAQ, but I don’t remember if I tried to reproduce the problem on another device)
  • I'm clinically insane, and this has never happened.
0
source

I have successfully used the OpenNETCF.WindowsCE.DateTimeHelper class . My platform:

Windows Mobile 6.1

CF 3.5

0
source

All Articles