Share via


Daylight Saving Time Registry Settings (Compact 2013)

3/28/2014

The following registry key example shows how to set the OS to daylight saving time during cold or warm boot.

[HKEY_LOCAL_MACHINE\Software\Microsoft\Clock]
   "HomeDST": REG_DWORD

If you set this registry value to 1, daylight saving time is enabled for the current time zone when the OS boots. The OS reads the current time zone when the OS boots. If you set this registry value to 0, daylight saving time is disabled the next time the OS boots. The OS reads this registry value only when the OS boots. If the OS cannot find this registry value, the OS uses the default value of 0.

For Windows Embedded Compact, the registry key for daylight saving time is not present by default. There is no auto-adjust for daylight saving time. The registry key is created on demand, for example, when the clock application is activated. If the key is present, the value of the registry key should be used as is, for the .NET Compact Framework logic to work, that is, for DateTime.Now to return a coherent value.

See Also

Reference

Core OS Registry Settings
Time and Date Registry Settings