The source project of this merge request has been removed.
Merged requested to merge (removed):master into master
there were two bugs in
TZONE_OFFSETis not multiplied by 1000, even though
TZONE_OFFSETis added in both
set_timeshould subtract the timezone offset.
import utime old = utime.time() utime.set_time(old) new = utime.time() if old != new: print("time difference:", new - old) # will print 7607, or 2.11 hours with the old code # should print 0 or 1 at most