From a1c6a87bd6f6e275dc994fd324e0c792ee0f8a57 Mon Sep 17 00:00:00 2001 From: schneider <schneider@blinkenlichts.net> Date: Sun, 10 Nov 2019 12:44:48 +0100 Subject: [PATCH] fix(utime): change time zone from CEST to CET --- pycardium/modules/utime.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pycardium/modules/utime.c b/pycardium/modules/utime.c index 874d0d7a..f6fd365b 100644 --- a/pycardium/modules/utime.c +++ b/pycardium/modules/utime.c @@ -16,7 +16,9 @@ /* MicroPython has its epoch at 2000-01-01. Our RTC is in UTC */ #define EPOCH_OFFSET 946684800UL -#define TZONE_OFFSET 7200UL + +/* Fixed time zone: CET */ +#define TZONE_OFFSET 3600UL static mp_obj_t time_set_time(mp_obj_t secs) { -- GitLab