fix utc_today
This commit is contained in:
+1
-1
@@ -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
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user