From a53847b7d27938551bb4f1c8891e7bacc93143ee Mon Sep 17 00:00:00 2001 From: tille Date: Thu, 04 Jul 2002 13:52:07 +0000 Subject: aply ntp on set not on quit -- hopefully --- (limited to 'noncore/settings') 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 #include #include +#include #include #include #include @@ -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); -- cgit v0.9.0.2