From 5b957fb5cfc7a19cf5078148985da4d3e8523b16 Mon Sep 17 00:00:00 2001 From: Aeluin Chen Date: Fri, 31 Mar 2017 11:39:11 +0800 Subject: [PATCH 1/2] fix: Sync time at startup --- systime/ntp.py | 1 + 1 file changed, 1 insertion(+) 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): From ab031d53c2941e449c9cf864824d4b5ffa140daf Mon Sep 17 00:00:00 2001 From: Aeluin Chen Date: Fri, 31 Mar 2017 11:40:22 +0800 Subject: [PATCH 2/2] 2.1.1 --- build-deb/debian/changelog | 6 ++++++ bundle.json | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) 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",