From db1f8d078ec71b272ab7d964a26091c46c85a13c Mon Sep 17 00:00:00 2001 From: Ferdinand Bachmann <theferdi265@gmail.com> Date: Thu, 22 Aug 2019 12:58:51 +0000 Subject: [PATCH] fix(utime.c): Make set_time correctly subtract TZONE_OFFSET --- pycardium/modules/utime.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pycardium/modules/utime.c b/pycardium/modules/utime.c index ef9b3da65..bf6862d03 100644 --- a/pycardium/modules/utime.c +++ b/pycardium/modules/utime.c @@ -20,7 +20,7 @@ static mp_obj_t time_set_time(mp_obj_t secs) { uint64_t timestamp = mp_obj_get_int(secs) * 1000ULL + - EPOCH_OFFSET * 1000ULL + TZONE_OFFSET; + EPOCH_OFFSET * 1000ULL - TZONE_OFFSET * 1000ULL; epic_rtc_set_milliseconds(timestamp); return mp_const_none; } -- GitLab