Login Page - Create Account

Support Board


Date/Time: Sat, 20 Apr 2024 05:25:30 +0000



Post From: GetChartTimeZone() string

[2022-07-07 03:10:41]
User660727 - Posts: 50
Currently, GetChartTimeZone() returns a non-standard time zone string.
For example, when the user selects "Chicago (-6 CST/-5 CDT)", it returns "CST-06CDT+01,M3.2.0/02:00,M11.1.0/02:00"
I'm struggling to convert this to a useful value that I can use with std::chrono.

Is there a way to get something I could convert to a std::chrono::time_zone name? Any of these would work:
- a TimeZonesEnum enum value
- or the time zone the user selected ("Chicago")
- or a std::chrono::time_zone name ("America/Chicago")?