fix utc_today

This commit is contained in:
Klemek
2023-10-16 11:10:02 +02:00
parent fffaae130c
commit c503673cbc
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -18,7 +18,7 @@ emojis.load_emojis()
bot = Bot( bot = Bot(
"Discord Analyst", "Discord Analyst",
"1.17.2", "1.17.3",
alias="%", alias="%",
) )
+2 -1
View File
@@ -262,7 +262,8 @@ def utc_now() -> datetime:
return datetime.now(tz=timezone.utc) return datetime.now(tz=timezone.utc)
def utc_today() -> datetime: def utc_today() -> datetime:
return datetime.now(tz=timezone.utc).date() today = utc_now().date()
return datetime(today.year, today.month, today.day, tz=timezone.utc)
def parse_relative_time(src: str) -> datetime: def parse_relative_time(src: str) -> datetime: