-rw-r--r-- | noncore/settings/netsystemtime/timetabwidget.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/noncore/settings/netsystemtime/timetabwidget.cpp b/noncore/settings/netsystemtime/timetabwidget.cpp index 895514b..e6fcf7f 100644 --- a/noncore/settings/netsystemtime/timetabwidget.cpp +++ b/noncore/settings/netsystemtime/timetabwidget.cpp @@ -174,13 +174,13 @@ void TimeTabWidget::setDateTime( const QDateTime &dt ) { // Set time QTime t = dt.time(); if( use12HourTime ) { int show_hour = t.hour(); - if ( t.hour() >= 12 ) + if ( t.hour() > 12 ) { show_hour -= 12; cbAmpm->setCurrentItem( ValuePM ); } else { @@ -236,13 +236,13 @@ void TimeTabWidget::slotUse12HourTime( int i ) if ( use12HourTime ) { sbHour->setMinValue( 1 ); sbHour->setMaxValue( 12 ); - if ( show_hour >= 12 ) + if ( show_hour > 12 ) { show_hour -= 12; cbAmpm->setCurrentItem( ValuePM ); } else { |