开发者

What is the proper way to disable daylight savings auto-adjustment on WinCE?

开发者 https://www.devze.com 2022-12-12 02:04 出处:网络
I want to programatically uncheck the \"auto开发者_如何学Gomatically adjust the clock for daylight savings\" check box from a compact framework application running in WinCE.

I want to programatically uncheck the "auto开发者_如何学Gomatically adjust the clock for daylight savings" check box from a compact framework application running in WinCE.

Google searches indicate that you can do this in Windows by setting the DisableAutoDaylightTimeSet value under the HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\TimeZoneInformation key. This key doesn't appear to exist in WinCE. Is there a different way to do this in WinCE?


The best answer I can find on this is to use the "HomeDST" registry key:

http://msdn.microsoft.com/en-us/library/bb202749.aspx

There is an "AUTODst" registry key also which seems to automatically adjust, but that appears to depend on SNTP. If anyone knows a way to automatically adjust for DST in WinCE without using SNTP please comment.


You can disable DST with this command tzutil /s Pacific Standard Time_dstoff.

0

精彩评论

暂无评论...
验证码 换一张
取 消