kopia lustrzana https://github.com/tsileo/little-boxes
Fix formatting
rodzic
69be882f16
commit
e2416ac7f6
|
@ -73,7 +73,12 @@ 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().replace("+00:00", "Z")
|
||||
return (
|
||||
dt.astimezone(timezone.utc)
|
||||
.replace(microsecond=0)
|
||||
.isoformat()
|
||||
.replace("+00:00", "Z")
|
||||
)
|
||||
|
||||
|
||||
class ActivityType(Enum):
|
||||
|
|
Ładowanie…
Reference in New Issue