Use datetime.now().date() instead of today().
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
Contains commands and views for set commands.
|
||||
"""
|
||||
|
||||
from datetime import datetime
|
||||
from datetime import UTC, datetime
|
||||
|
||||
import nextcord
|
||||
from nextcord.ext import commands
|
||||
@@ -57,7 +57,7 @@ class setCog(commands.Cog, name="Set Commands"):
|
||||
return
|
||||
|
||||
# check if valid day
|
||||
today = datetime.today()
|
||||
today = datetime.now(tz=UTC).date()
|
||||
try:
|
||||
birthday = datetime(today.year, month, day)
|
||||
except ValueError:
|
||||
|
||||
Reference in New Issue
Block a user