From ef0d49089061cfe242fdbaf61423e64b0eeed098 Mon Sep 17 00:00:00 2001 From: Simon Date: Fri, 28 Jul 2023 15:56:59 +0700 Subject: [PATCH] [API] change dates to ISO format --- tubearchivist/home/src/ta/helper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tubearchivist/home/src/ta/helper.py b/tubearchivist/home/src/ta/helper.py index 6016d3c..b193640 100644 --- a/tubearchivist/home/src/ta/helper.py +++ b/tubearchivist/home/src/ta/helper.py @@ -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: