Skip to content
Snippets Groups Projects
Commit db1f8d07 authored by Ferdinand Bachmann's avatar Ferdinand Bachmann Committed by rahix
Browse files

fix(utime.c): Make set_time correctly subtract TZONE_OFFSET

parent 08d8d9a1
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment