diff options
| author | lat9nq <22451773+lat9nq@users.noreply.github.com> | 2023-07-12 03:02:45 -0400 |
|---|---|---|
| committer | lat9nq <22451773+lat9nq@users.noreply.github.com> | 2023-07-12 03:02:45 -0400 |
| commit | 0331d580e21f5f4b949254eaa174799abdd6c01a (patch) | |
| tree | ca4707079a169607d422a46a5ade1c7aebf78952 /src/common/time_zone.cpp | |
| parent | 9fde7a84ea395660c29b510f4e8cb4ff9d92922f (diff) | |
time_zone: Swap subtraction order
Diffstat (limited to 'src/common/time_zone.cpp')
| -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 1ee63bf802..6131957efd 100644 --- a/src/common/time_zone.cpp +++ b/src/common/time_zone.cpp @@ -53,7 +53,7 @@ std::chrono::seconds GetCurrentOffsetSeconds() { // gmt_seconds is a different offset than time(nullptr) const auto gmt_seconds = TmSpecToSeconds(gmt); const auto local_seconds = TmSpecToSeconds(local); - const auto seconds_offset = gmt_seconds - local_seconds; + const auto seconds_offset = local_seconds - gmt_seconds; return std::chrono::seconds{seconds_offset}; } |
