Time/Date Control Panel Patch

For a while now, I have had a patch for the Date/Time Control Panel item that shows what the current time zone is. Originally, it just showed the text Unknown to the user. But this also showed in both ReactOS and Windows, so I decided to see why it didn't show the correct time zone instead. Finding a website that talked about the SetTimeZoneInformation() function (http://msdn.microsoft.com/en-us/library/windows/desktop/ms724944%28v=vs.85%29.aspx) and looked at the example code. It showed that when it was retrieving the current time zone, it received the same data even if the Time Zone ID is unknown or if it was standard time. Since the idea of the text showing the current time zone, and not that if it was considered standard time or daylight savings, I made the necessary changes so that even if the current time zone is listed as TIME_ZONE_ID_UNKNOWN, that it shows the time zone regardless.

Comments