misc: small fix or general refactoring i did not bother commenting

This commit is contained in:
Simone Margaritelli 2019-10-24 12:48:04 +02:00
parent 2239406272
commit 4addefd57d
No known key found for this signature in database
GPG Key ID: 82E42E7F3B34C97E

@ -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")