reactos/dll/cpl/timedate
Hermès Bélusca-Maïto aa69236646
[TIMEDATE.CPL] In case TimeZone data does not contain a valid StandardName, perform comparisons against the time-zone numerical values instead.
It may happen that the time-zone information in the registry key
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\TimeZoneInformation
contains an empty StandardName / DaylightName, or is too long for the
standard maximum 32-character length, and therefore is returned empty.
And/or it may happen as well that some of the standard names (value "Std")
present in some of the time zones listed in
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Time Zones
are similarly too long, and therefore are returned as empty strings.

In case this happens, perform comparisons instead with the numerical
values Bias, StandardBias, DaylightBias, StandardDate and DaylightDate
in order to find a match.

It is interesting to note also that in Vista+ there is an additional
REG_SZ value "TimeZoneKeyName" in
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\TimeZoneInformation
that allows to directly find a match in the time zones list in
"Windows NT\CurrentVersion\Time Zones".
2020-04-22 00:58:34 +02:00
..
lang [TIMEDATE] Polish translation update (#2567) 2020-04-18 19:19:52 +02:00
resources
clock.c [TIMEDATE] Update the clock on WM_TIMECHANGE 2020-01-05 12:21:53 +01:00
CMakeLists.txt [TIMEDATE.CPL][SYSSETUP][TZLIB] Introduce a small static library "tzlib": "TimeZone Utilities Library", and use it in timedate.cpl and syssetup.dll. 2020-04-22 00:58:32 +02:00
dateandtime.c [TIMEDATE] Separate time sync functions out into their own file. CORE-13001 2019-07-07 12:44:37 +02:00
internettime.c [TIMEDATE] Pervent running multiple NTP updates at once 2020-04-12 13:12:23 +02:00
monthcal.c
resource.h [TIMEDATE] Implement the dynamic NTP status notification (#2352) 2020-02-24 19:56:02 +09:00
timedate.c [REACTOS] Fix MSVC printf format warnings 2019-08-15 15:24:12 +02:00
timedate.h [TIMEDATE] Remove lpszSyncStatus member entirely (#2383) 2020-02-24 16:59:11 +01:00
timedate.rc [TRANSLATION] Various translations to Estonian (#329) 2018-01-29 17:03:27 +01:00
timedate.spec [SPEC] Add missing newlines 2019-03-06 00:40:29 +01:00
timezone.c [TIMEDATE.CPL] In case TimeZone data does not contain a valid StandardName, perform comparisons against the time-zone numerical values instead. 2020-04-22 00:58:34 +02:00