summaryrefslogtreecommitdiff
path: root/noncore/tools/clock/clock.cpp
Side-by-side diff
Diffstat (limited to 'noncore/tools/clock/clock.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/tools/clock/clock.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/noncore/tools/clock/clock.cpp b/noncore/tools/clock/clock.cpp
index 9b9e644..a47793b 100644
--- a/noncore/tools/clock/clock.cpp
+++ b/noncore/tools/clock/clock.cpp
@@ -307,2 +307,5 @@ void Clock::slotSetAlarm()
if(ampm) {
+ if ( hour == 12 )
+ hour = 0;
+
if(setAlarmDlg->Pm_RadioButton->isChecked() && hour < 12 )