misc: small fix or general refactoring i did not bother commenting
This commit is contained in:
parent
2239406272
commit
4addefd57d
@ -6,6 +6,8 @@ import pwnagotchi.ui.faces as faces
|
||||
|
||||
|
||||
def parse_rfc3339(dt):
|
||||
if dt == "0001-01-01T00:00:00Z":
|
||||
return datetime.datetime.now()
|
||||
return datetime.datetime.strptime(dt.split('.')[0], "%Y-%m-%dT%H:%M:%S")
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user