diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/common/time_zone.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/time_zone.cpp b/src/common/time_zone.cpp index 1ee63bf80..6131957ef 100644 --- a/src/common/time_zone.cpp +++ b/src/common/time_zone.cpp | |||
| @@ -53,7 +53,7 @@ std::chrono::seconds GetCurrentOffsetSeconds() { | |||
| 53 | // gmt_seconds is a different offset than time(nullptr) | 53 | // gmt_seconds is a different offset than time(nullptr) |
| 54 | const auto gmt_seconds = TmSpecToSeconds(gmt); | 54 | const auto gmt_seconds = TmSpecToSeconds(gmt); |
| 55 | const auto local_seconds = TmSpecToSeconds(local); | 55 | const auto local_seconds = TmSpecToSeconds(local); |
| 56 | const auto seconds_offset = gmt_seconds - local_seconds; | 56 | const auto seconds_offset = local_seconds - gmt_seconds; |
| 57 | 57 | ||
| 58 | return std::chrono::seconds{seconds_offset}; | 58 | return std::chrono::seconds{seconds_offset}; |
| 59 | } | 59 | } |