Permalink
Browse files

Qt/AdvancedPane: Show seconds in custom RTC

  • Loading branch information...
spycrab committed May 28, 2018
1 parent bda6689 commit 42bd1a91a6a4b5694a34c4a1ea90d4752ad27658
Showing with 5 additions and 0 deletions.
  1. +5 −0 Source/Core/DolphinQt2/Settings/AdvancedPane.cpp
@@ -72,6 +72,11 @@ void AdvancedPane::CreateLayout()
rtc_options->layout()->addWidget(m_custom_rtc_checkbox);
m_custom_rtc_datetime = new QDateTimeEdit();
// Show seconds
m_custom_rtc_datetime->setDisplayFormat(m_custom_rtc_datetime->displayFormat().replace(
QStringLiteral("mm"), QStringLiteral("mm:ss")));
if (!m_custom_rtc_datetime->displayFormat().contains(QStringLiteral("yyyy")))
{
// Always show the full year, no matter what the locale specifies. Otherwise, two-digit years

0 comments on commit 42bd1a9

Please sign in to comment.