From f417e336a2efbb2302076c349ed1a2435254f4ff Mon Sep 17 00:00:00 2001 From: Marius Gripp Date: Thu, 10 Oct 2019 16:11:38 +0200 Subject: [PATCH] issue 464 fix: time set in UTC --- src/timesync.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/timesync.cpp b/src/timesync.cpp index e77897cf..917140d0 100644 --- a/src/timesync.cpp +++ b/src/timesync.cpp @@ -209,7 +209,7 @@ int recv_timesync_ans(const uint8_t buf[], const uint8_t buf_len) { // construct the timepoint when message was seen on gateway time_sync_rx[k] += - seconds(timestamp_sec + timezone_sec) + milliseconds(timestamp_msec); + seconds(timestamp_sec) + milliseconds(timestamp_msec); // we guess timepoint is recent if it newer than code compile date if (timeIsValid(myClock::to_time_t(time_sync_rx[k]))) {