

That is why I have implemented the trick as a global class instance and placed it before the app instance:ĬE_MicrosoftClock() ĬszSubKeyName. It is also the case for other "switchable" Zones in winter or - when it is not wanted by User - on PC Windows, but not on CE Windows " src="" />Ībove all " src="" />, the CRT library makes this check once only, at the first necessity of a time convertation. It is a case for some Time Zones wich are not providing any time switching (for example Afganistan).
Utc clock windows 7 code#
The CRT library does initialize the "auto-DST" global variable by TRUE, and there is the only one code context that changes it to FALSE: the Time Zone Information should have NULL-dates for the standard (winter) and daylight (summer) times. Than log to Windows, if you were under Linux, open the Start. The first thing I recommend you to do is to manually set the time to coincide to UTC you can do it on both Windows or Linux and you can check the current UTC time on the following site. The trick has been tested at the Windows CE versions 5 and 6. To configure Windows to support UTC clock you just need to add a key to the Windows registry. With this trick, any saved time stamp in UTC will be correctly translated into the local time, for example by the call of CTime::GetLocalTm(.) or just of ::_localtime64_s(.), and in the described above context as well. Here is a trick to fix a Windows CE bug in the time convertation from its UTC (Coordinated Universal Time) to the Local (shown by the taskbar clock) form, in the context of the time zones which are providing DST (Daylight Saving Time) in theory, but that is not wanted currently at the user level: This means setting the clock to something other that UTC time will cause 'local time' to be wrong.
