summaryrefslogtreecommitdiff
path: root/noncore
Side-by-side diff
Diffstat (limited to 'noncore') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/settings/netsystemtime/ntp.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/noncore/settings/netsystemtime/ntp.cpp b/noncore/settings/netsystemtime/ntp.cpp
index aecefc1..f653cd0 100644
--- a/noncore/settings/netsystemtime/ntp.cpp
+++ b/noncore/settings/netsystemtime/ntp.cpp
@@ -22,4 +22,5 @@
#include <qpe/qpedialog.h>
#include <qpe/datebookdb.h>
+#include <qpe/datebookmonth.h>
#include <qpe/qcopenvelope_qws.h>
#include <sys/time.h>
@@ -224,4 +225,8 @@ void Ntp::ntpFinished(OProcess *p)
TextLabelNewTime->setText(QDateTime::currentDateTime().toString());
TextLabelTimeShift->setText(QString::number(timeShift)+tr(" seconds"));
+
+ dateButton->setDate( QDate::currentDate() );
+ timeButton->setTime( QDateTime::currentDateTime() );
+
if ( lastNtp && lastLookup > 0 && secsSinceLast > 60* SpinBoxMinLookupDelay->value())
{