Skip to content

Commit

Permalink
Qt/AdvancedPane: Force UTC time for custom RTC entry
Browse files Browse the repository at this point in the history
  • Loading branch information
Techjar committed Sep 15, 2020
1 parent eae6819 commit 4d15fb6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Source/Core/DolphinQt/Settings/AdvancedPane.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 =
Expand Down

0 comments on commit 4d15fb6

Please sign in to comment.