-rw-r--r-- | noncore/settings/netsystemtime/timetabwidget.cpp | 6 |
1 files changed, 6 insertions, 0 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 | |||
@@ -201,12 +201,18 @@ void TimeTabWidget::setSystemTime( const QDateTime &dt ) | |||
201 | int t = TimeConversion::toUTC( dt ); | 201 | int t = TimeConversion::toUTC( dt ); |
202 | myTv.tv_sec = t; | 202 | myTv.tv_sec = t; |
203 | myTv.tv_usec = 0; | 203 | myTv.tv_usec = 0; |
204 | 204 | ||
205 | if ( myTv.tv_sec != -1 ) | 205 | if ( myTv.tv_sec != -1 ) |
206 | ::settimeofday( &myTv, 0 ); | 206 | ::settimeofday( &myTv, 0 ); |
207 | |||
208 | /* | ||
209 | * Commit the datetime to the 'hardware' | ||
210 | * as Global::writeHWClock() is a NOOP with Opie Alarm | ||
211 | */ | ||
212 | system("/sbin/hwclock --systohc --utc"); | ||
207 | } | 213 | } |
208 | } | 214 | } |
209 | 215 | ||
210 | void TimeTabWidget::slotUse12HourTime( int i ) | 216 | void TimeTabWidget::slotUse12HourTime( int i ) |
211 | { | 217 | { |
212 | use12HourTime = (i == 1); | 218 | use12HourTime = (i == 1); |