diff options
Diffstat (limited to 'src/common/settings.cpp')
| -rw-r--r-- | src/common/settings.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/common/settings.cpp b/src/common/settings.cpp index 491adc30e..15fd2e222 100644 --- a/src/common/settings.cpp +++ b/src/common/settings.cpp | |||
| @@ -72,7 +72,8 @@ std::string GetTimeZoneString(TimeZone time_zone) { | |||
| 72 | 72 | ||
| 73 | std::string location_name; | 73 | std::string location_name; |
| 74 | if (time_zone_index == 0) { // Auto | 74 | if (time_zone_index == 0) { // Auto |
| 75 | #if __cpp_lib_chrono >= 201907L | 75 | #if __cpp_lib_chrono >= 201907L && !defined(MINGW) |
| 76 | // Disabled for MinGW -- tzdb always returns Etc/UTC | ||
| 76 | try { | 77 | try { |
| 77 | const struct std::chrono::tzdb& time_zone_data = std::chrono::get_tzdb(); | 78 | const struct std::chrono::tzdb& time_zone_data = std::chrono::get_tzdb(); |
| 78 | const std::chrono::time_zone* current_zone = time_zone_data.current_zone(); | 79 | const std::chrono::time_zone* current_zone = time_zone_data.current_zone(); |