From 4d15fb62d9656286c946655d4c8e290442dbe716 Mon Sep 17 00:00:00 2001 From: Techjar Date: Mon, 14 Sep 2020 21:53:16 -0400 Subject: [PATCH] Qt/AdvancedPane: Force UTC time for custom RTC entry --- Source/Core/DolphinQt/Settings/AdvancedPane.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Source/Core/DolphinQt/Settings/AdvancedPane.cpp b/Source/Core/DolphinQt/Settings/AdvancedPane.cpp index 5914cc0224..f4721675e4 100644 --- a/Source/Core/DolphinQt/Settings/AdvancedPane.cpp +++ b/Source/Core/DolphinQt/Settings/AdvancedPane.cpp @@ -156,7 +156,9 @@ void AdvancedPane::CreateLayout() m_custom_rtc_datetime->setDisplayFormat(m_custom_rtc_datetime->displayFormat().replace( QStringLiteral("yy"), QStringLiteral("yyyy"))); } - m_custom_rtc_datetime->setDateRange({2000, 1, 1}, {2099, 12, 31}); + m_custom_rtc_datetime->setDateTimeRange(QDateTime({2000, 1, 1}, {0, 0, 0}, Qt::UTC), + QDateTime({2099, 12, 31}, {23, 59, 59}, Qt::UTC)); + m_custom_rtc_datetime->setTimeSpec(Qt::UTC); rtc_options->layout()->addWidget(m_custom_rtc_datetime); auto* custom_rtc_description =