From 42bd1a91a6a4b5694a34c4a1ea90d4752ad27658 Mon Sep 17 00:00:00 2001 From: spycrab Date: Mon, 28 May 2018 13:37:46 +0200 Subject: [PATCH] Qt/AdvancedPane: Show seconds in custom RTC --- Source/Core/DolphinQt2/Settings/AdvancedPane.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Source/Core/DolphinQt2/Settings/AdvancedPane.cpp b/Source/Core/DolphinQt2/Settings/AdvancedPane.cpp index 38f555fe9d..70e79201f8 100644 --- a/Source/Core/DolphinQt2/Settings/AdvancedPane.cpp +++ b/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