mirror of
https://git.h3cjp.net/H3cJP/yuzu.git
synced 2024-12-29 06:26:44 +00:00
time_zone: Swap subtraction order
This commit is contained in:
parent
13755c0903
commit
9e0d6f7d54
|
@ -53,7 +53,7 @@ std::chrono::seconds GetCurrentOffsetSeconds() {
|
||||||
// gmt_seconds is a different offset than time(nullptr)
|
// gmt_seconds is a different offset than time(nullptr)
|
||||||
const auto gmt_seconds = TmSpecToSeconds(gmt);
|
const auto gmt_seconds = TmSpecToSeconds(gmt);
|
||||||
const auto local_seconds = TmSpecToSeconds(local);
|
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};
|
return std::chrono::seconds{seconds_offset};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue