diff options
author | lat9nq <22451773+lat9nq@users.noreply.github.com> | 2023-05-21 08:43:15 +0200 |
---|---|---|
committer | lat9nq <22451773+lat9nq@users.noreply.github.com> | 2023-06-05 21:15:11 +0200 |
commit | 9e2164be74d9049877092771155ba306140a320b (patch) | |
tree | 2a75615667756d9aa7e1b3f5cfdc1e2e510ebba5 /src/core | |
parent | tz_content_manager: Detect system time zone (diff) | |
download | yuzu-9e2164be74d9049877092771155ba306140a320b.tar yuzu-9e2164be74d9049877092771155ba306140a320b.tar.gz yuzu-9e2164be74d9049877092771155ba306140a320b.tar.bz2 yuzu-9e2164be74d9049877092771155ba306140a320b.tar.lz yuzu-9e2164be74d9049877092771155ba306140a320b.tar.xz yuzu-9e2164be74d9049877092771155ba306140a320b.tar.zst yuzu-9e2164be74d9049877092771155ba306140a320b.zip |
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/hle/service/time/time_manager.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/core/hle/service/time/time_manager.cpp b/src/core/hle/service/time/time_manager.cpp index 28667710e..d5c9e6b5e 100644 --- a/src/core/hle/service/time/time_manager.cpp +++ b/src/core/hle/service/time/time_manager.cpp @@ -22,10 +22,6 @@ s64 GetSecondsSinceEpoch() { return std::chrono::duration_cast<std::chrono::seconds>(time_since_epoch).count() + Settings::values.custom_rtc_differential; } - -s64 GetExternalRtcValue() { - return GetSecondsSinceEpoch() + TimeManager::GetExternalTimeZoneOffset(); -} } // Anonymous namespace struct TimeManager::Impl final { @@ -43,7 +39,7 @@ struct TimeManager::Impl final { std::make_shared<Clock::EphemeralNetworkSystemClockContextWriter>()}, time_zone_content_manager{system} { - const auto system_time{Clock::TimeSpanType::FromSeconds(GetExternalRtcValue())}; + const auto system_time{Clock::TimeSpanType::FromSeconds(GetSecondsSinceEpoch())}; SetupStandardSteadyClock(system, Common::UUID::MakeRandom(), system_time, {}, {}); SetupStandardLocalSystemClock(system, {}, system_time.ToSeconds()); |