kopia lustrzana https://github.com/tsileo/little-boxes
Fix date formatting
rodzic
88d7f48e12
commit
69be882f16
|
@ -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):
|
||||
|
|
Ładowanie…
Reference in New Issue