Fix date formatting

master
Thomas Sileo 2019-04-14 13:29:04 +02:00
rodzic 88d7f48e12
commit 69be882f16
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -73,7 +73,7 @@ def format_datetime(dt: datetime) -> str:
if dt.tzinfo is None:
raise ValueError("datetime must be tz aware")
return dt.astimezone(timezone.utc).replace(microsecond=0).isoformat() + "Z"
return dt.astimezone(timezone.utc).replace(microsecond=0).isoformat().replace("+00:00", "Z")
class ActivityType(Enum):