Fix datetime

This commit is contained in:
nex 2023-01-26 15:15:19 +00:00
parent f18a06bd5d
commit d4eabe2f54

View file

@ -76,7 +76,7 @@ class Mod(commands.Cog):
except ValueError:
return await ctx.respond("Invalid date format. Use `DD/MM/YYYY`.")
try:
hour, minute = map(int, until.split(":"))
hour, minute = map(int, _time.split(":"))
except ValueError:
return await ctx.respond("\N{cross mark} Invalid time format. Use HH:MM.")
end = date.replace(hour=hour, minute=minute)