-rw-r--r-- | noncore/settings/netsystemtime/timetabwidget.cpp | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/noncore/settings/netsystemtime/timetabwidget.cpp b/noncore/settings/netsystemtime/timetabwidget.cpp index 1ea460e..3cc127d 100644 --- a/noncore/settings/netsystemtime/timetabwidget.cpp +++ b/noncore/settings/netsystemtime/timetabwidget.cpp @@ -71,3 +71,3 @@ TimeTabWidget::TimeTabWidget( QWidget *parent ) sv->addChild( container ); - + QGridLayout *layout = new QGridLayout( container ); @@ -189,3 +189,3 @@ void TimeTabWidget::setDateTime( const QDateTime &dt ) sbMin->setValue( t.minute() ); - + // Set date @@ -205,3 +205,9 @@ void TimeTabWidget::setSystemTime( const QDateTime &dt ) if ( myTv.tv_sec != -1 ) - ::settimeofday( &myTv, 0 ); + ::settimeofday( &myTv, 0 ); + + /* + * Commit the datetime to the 'hardware' + * as Global::writeHWClock() is a NOOP with Opie Alarm + */ + system("/sbin/hwclock --systohc --utc"); } @@ -212,3 +218,3 @@ void TimeTabWidget::slotUse12HourTime( int i ) use12HourTime = (i == 1); - + cbAmpm->setEnabled( use12HourTime ); |