mirror of
https://github.com/tubearchivist/tubearchivist
synced 2024-11-04 12:00:21 +00:00
[API] change dates to ISO format
This commit is contained in:
parent
865089d46d
commit
ef0d490890
@ -91,7 +91,7 @@ def date_praser(timestamp: int | str) -> str:
|
||||
elif isinstance(timestamp, str):
|
||||
date_obj = datetime.strptime(timestamp, "%Y-%m-%d")
|
||||
|
||||
return datetime.strftime(date_obj, "%d %b, %Y")
|
||||
return date_obj.date().isoformat()
|
||||
|
||||
|
||||
def time_parser(timestamp: str) -> float:
|
||||
|
Loading…
Reference in New Issue
Block a user