summaryrefslogtreecommitdiff
path: root/noncore
authortille <tille>2002-07-04 13:52:07 (UTC)
committer tille <tille>2002-07-04 13:52:07 (UTC)
commita53847b7d27938551bb4f1c8891e7bacc93143ee (patch) (side-by-side diff)
tree5910685b0156b089af8a117d261ea02d05a44b95 /noncore
parent61b99edb481444aea41fa47853a5d60c78bfaa3c (diff)
downloadopie-a53847b7d27938551bb4f1c8891e7bacc93143ee.zip
opie-a53847b7d27938551bb4f1c8891e7bacc93143ee.tar.gz
opie-a53847b7d27938551bb4f1c8891e7bacc93143ee.tar.bz2
aply ntp on set not on quit -- hopefully
Diffstat (limited to 'noncore') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/settings/netsystemtime/ntp.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/noncore/settings/netsystemtime/ntp.cpp b/noncore/settings/netsystemtime/ntp.cpp
index 40b5531..0b13b6d 100644
--- a/noncore/settings/netsystemtime/ntp.cpp
+++ b/noncore/settings/netsystemtime/ntp.cpp
@@ -17,6 +17,7 @@
#include <qpe/tzselect.h>
#include <qpe/timestring.h>
#include <qpe/qpedialog.h>
+#include <qpe/datebookdb.h>
#include <sys/time.h>
#include <time.h>
#include <stdlib.h>
@@ -144,6 +145,13 @@ void Ntp::ntpFinished(OProcess *p)
slotProbeNtpServer();
return;
}
+
+ Global::writeHWClock();
+ // since time has changed quickly load in the datebookdb
+ // to allow the alarm server to get a better grip on itself
+ // (example re-trigger alarms for when we travel back in time)
+ DateBookDB db;
+
Config cfg("ntp",Config::User);
cfg.setGroup("lookups");
int lastLookup = cfg.readNumEntry("time",0);