diff options
| author | Morph <39850852+Morph1984@users.noreply.github.com> | 2023-07-09 01:45:00 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-07-09 01:45:00 -0400 |
| commit | 411d553bdfeb7bcfab5c41b6a67a26fd4fe7e97a (patch) | |
| tree | 35c7f311cfd0b01e3b04793e447f84d171752224 /src | |
| parent | 8f623a266b66163b5c86cac9725d0d39ce61fd02 (diff) | |
| parent | b648c43fe86369adc5bbc97e6e212b2930f21c8a (diff) | |
Merge pull request #11030 from lat9nq/tz-restrict-msvc
settings: Disable C++20 time zone path on MSVC
Diffstat (limited to 'src')
| -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 6cbbea1b21..c81909a063 100644 --- a/src/common/settings.cpp +++ b/src/common/settings.cpp @@ -26,7 +26,8 @@ std::string GetTimeZoneString() { std::string location_name; if (time_zone_index == 0) { // Auto -#if __cpp_lib_chrono >= 201907L +#if __cpp_lib_chrono >= 201907L && !defined(_MSC_VER) + // TODO: Remove `!defined(_MSC_VER)` when we no longer support Windows 10 1809 LTSC const struct std::chrono::tzdb& time_zone_data = std::chrono::get_tzdb(); try { const std::chrono::time_zone* current_zone = time_zone_data.current_zone(); |
