[TIMEDATE]

- Correctly show current time zone name even if no daylight saving settings are set. Patch by Lee Schroeder.
CORE-6803 #resolve #comment Fixed, thanks. Sorry for the long wait.

svn path=/trunk/; revision=58126
This commit is contained in:
Thomas Faber 2013-01-06 11:37:11 +00:00
parent dc303b40f8
commit d655fccbd2

View file

@ -123,6 +123,7 @@ SetTimeZoneName(HWND hwnd)
switch (TimeZoneId) switch (TimeZoneId)
{ {
case TIME_ZONE_ID_STANDARD: case TIME_ZONE_ID_STANDARD:
case TIME_ZONE_ID_UNKNOWN:
wcscpy(TimeZoneName, TimeZoneInfo.StandardName); wcscpy(TimeZoneName, TimeZoneInfo.StandardName);
break; break;
@ -130,10 +131,6 @@ SetTimeZoneName(HWND hwnd)
wcscpy(TimeZoneName, TimeZoneInfo.DaylightName); wcscpy(TimeZoneName, TimeZoneInfo.DaylightName);
break; break;
case TIME_ZONE_ID_UNKNOWN:
LoadStringW(hApplet, IDS_TIMEZONEUNKNOWN, TimeZoneName, 128);
break;
case TIME_ZONE_ID_INVALID: case TIME_ZONE_ID_INVALID:
default: default:
LoadStringW(hApplet, IDS_TIMEZONEINVALID, TimeZoneName, 128); LoadStringW(hApplet, IDS_TIMEZONEINVALID, TimeZoneName, 128);