Getting Windows Time Zone Information (C++/MFC)
I’m trying to: Get a list of the time zone names as they appear in when the user selects a time zone from the Windows Control Panel (e.g., “(UTC-08:00) Pacific Time (US & Canada)”). I’m doing that by reading “CurrentVersion\Time Zones” section of the registry which works well. Get the currently selected time zone as a string. I can get the current time zone using GetTimeZoneInformation(), but the names don’t match the list of time zones retrieved from “CurrentVersion\Time Zones” section of the registry. For example, Pacific time appears as “(UTC-08:00) Pacific Time (US & Canada)” in the list