kopia lustrzana https://github.com/micropython/micropython-lib
Merge 06592f8246
into 661efa48f0
commit
a591b0d97f
|
@ -633,10 +633,9 @@ class datetime:
|
|||
else:
|
||||
us = 0
|
||||
if tz is None:
|
||||
raise NotImplementedError
|
||||
else:
|
||||
dt = cls(*_tmod.gmtime(ts)[:6], microsecond=us, tzinfo=tz)
|
||||
dt = tz.fromutc(dt)
|
||||
tz = timezone.utc
|
||||
dt = cls(*_tmod.gmtime(ts)[:6], microsecond=us, tzinfo=tz)
|
||||
dt = tz.fromutc(dt)
|
||||
return dt
|
||||
|
||||
@classmethod
|
||||
|
|
Ładowanie…
Reference in New Issue