time_zone: Use std::chrono::seconds for strong typing.

This commit is contained in:
bunnei 2020-05-12 18:44:07 -04:00
parent 3c8cd62b0d
commit bba54e1880
3 changed files with 5 additions and 4 deletions

View file

@ -25,7 +25,7 @@ static std::chrono::seconds GetSecondsSinceEpoch() {
static s64 GetExternalTimeZoneOffset() {
// With "auto" timezone setting, we use the external system's timezone offset
if (Settings::GetTimeZoneString() == "auto") {
return Common::TimeZone::GetCurrentOffsetSeconds();
return Common::TimeZone::GetCurrentOffsetSeconds().count();
}
return 0;
}