aboutsummaryrefslogtreecommitdiff
path: root/src/core/hle/service/time/time_manager.cpp
diff options
context:
space:
mode:
authorlat9nq <22451773+lat9nq@users.noreply.github.com>2023-05-21 15:44:34 -0400
committerlat9nq <22451773+lat9nq@users.noreply.github.com>2023-06-05 15:15:11 -0400
commita379c50acce33a1f5eb7e3cd87f5660c5fcf87d4 (patch)
tree067367470365a328fa47bdcee7bf60a17460889f /src/core/hle/service/time/time_manager.cpp
parente2bb24f012e09b832cc912ca059d643c987c3b83 (diff)
time: Remove auto timezone consideration
GetTimeZoneString no longer reports a setting unique to yuzu, so we can assume a valid timezone string in core.
Diffstat (limited to 'src/core/hle/service/time/time_manager.cpp')
-rw-r--r--src/core/hle/service/time/time_manager.cpp17
1 files changed, 0 insertions, 17 deletions
diff --git a/src/core/hle/service/time/time_manager.cpp b/src/core/hle/service/time/time_manager.cpp
index d5c9e6b5e1..20012afd95 100644
--- a/src/core/hle/service/time/time_manager.cpp
+++ b/src/core/hle/service/time/time_manager.cpp
@@ -119,14 +119,6 @@ struct TimeManager::Impl final {
time_zone_content_manager.GetTimeZoneManager().MarkAsInitialized();
}
- static s64 GetExternalTimeZoneOffset() {
- // With "auto" timezone setting, we use the external system's timezone offset
- if (Settings::GetTimeZoneString() == "auto") {
- return Common::TimeZone::GetCurrentOffsetSeconds().count();
- }
- return 0;
- }
-
void SetupStandardSteadyClock(Core::System& system_, Common::UUID clock_source_id,
Clock::TimeSpanType setup_value,
Clock::TimeSpanType internal_offset, bool is_rtc_reset_detected) {
@@ -297,13 +289,4 @@ void TimeManager::SetupTimeZoneManager(std::string location_name,
impl->SetupTimeZoneManager(location_name, time_zone_updated_time_point,
total_location_name_count, time_zone_rule_version, vfs_file);
}
-
-/*static*/ s64 TimeManager::GetExternalTimeZoneOffset() {
- // With "auto" timezone setting, we use the external system's timezone offset
- if (Settings::GetTimeZoneString() == "auto") {
- return Common::TimeZone::GetCurrentOffsetSeconds().count();
- }
- return 0;
-}
-
} // namespace Service::Time