diff --git a/build-deb/debian/changelog b/build-deb/debian/changelog index ae84670..0b1dc96 100644 --- a/build-deb/debian/changelog +++ b/build-deb/debian/changelog @@ -1,3 +1,9 @@ +sanji-bundle-time (2.1.1-1) unstable; urgency=low + + * fix: Sync time at startup. + + -- Aeluin Chen Fri, 31 Mar 2017 11:39:38 +0800 + sanji-bundle-time (2.1.0-1) unstable; urgency=low * fix: Use "UTC" instead of local time. diff --git a/bundle.json b/bundle.json index 7eadb08..d3b8057 100644 --- a/bundle.json +++ b/bundle.json @@ -1,6 +1,6 @@ { "name": "time", - "version": "2.1.0", + "version": "2.1.1", "author": "Zack YL Shih", "email": "ZackYL.Shih@moxa.com", "description": "Provides the system-time management function", diff --git a/systime/ntp.py b/systime/ntp.py index 2db4e06..2e3fd8f 100644 --- a/systime/ntp.py +++ b/systime/ntp.py @@ -40,6 +40,7 @@ def __init__(self, model): self._ntp_thread = Thread(target=self._ntp_update) self._ntp_thread.daemon = True if self.model.db["ntp"]["enable"] is True: + NtpDate(self.model.db["ntp"]["server"]) self.start() def update(self, config):