summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlat9nq <22451773+lat9nq@users.noreply.github.com>2023-07-12 09:02:45 +0200
committerlat9nq <22451773+lat9nq@users.noreply.github.com>2023-07-12 09:02:45 +0200
commit9e0d6f7d546fba694d0f87864d508faeca64c3e1 (patch)
treeca4707079a169607d422a46a5ade1c7aebf78952
parenttime_zone: Account for leap years (diff)
downloadyuzu-9e0d6f7d546fba694d0f87864d508faeca64c3e1.tar
yuzu-9e0d6f7d546fba694d0f87864d508faeca64c3e1.tar.gz
yuzu-9e0d6f7d546fba694d0f87864d508faeca64c3e1.tar.bz2
yuzu-9e0d6f7d546fba694d0f87864d508faeca64c3e1.tar.lz
yuzu-9e0d6f7d546fba694d0f87864d508faeca64c3e1.tar.xz
yuzu-9e0d6f7d546fba694d0f87864d508faeca64c3e1.tar.zst
yuzu-9e0d6f7d546fba694d0f87864d508faeca64c3e1.zip
-rw-r--r--src/common/time_zone.cpp2
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() {
// 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};
}