diff options
| author | 2023-07-12 03:02:45 -0400 | |
|---|---|---|
| committer | 2023-07-12 03:02:45 -0400 | |
| commit | 9e0d6f7d546fba694d0f87864d508faeca64c3e1 (patch) | |
| tree | ca4707079a169607d422a46a5ade1c7aebf78952 /src/common/time_zone.cpp | |
| parent | time_zone: Account for leap years (diff) | |
| download | yuzu-9e0d6f7d546fba694d0f87864d508faeca64c3e1.tar.gz yuzu-9e0d6f7d546fba694d0f87864d508faeca64c3e1.tar.xz yuzu-9e0d6f7d546fba694d0f87864d508faeca64c3e1.zip | |
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 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 | } |