mirror of
https://github.com/nexy7574/LCC-bot.git
synced 2024-09-20 02:26:32 +01:00
Fix datetime
This commit is contained in:
parent
f18a06bd5d
commit
d4eabe2f54
1 changed files with 1 additions and 1 deletions
|
@ -76,7 +76,7 @@ class Mod(commands.Cog):
|
||||||
except ValueError:
|
except ValueError:
|
||||||
return await ctx.respond("Invalid date format. Use `DD/MM/YYYY`.")
|
return await ctx.respond("Invalid date format. Use `DD/MM/YYYY`.")
|
||||||
try:
|
try:
|
||||||
hour, minute = map(int, until.split(":"))
|
hour, minute = map(int, _time.split(":"))
|
||||||
except ValueError:
|
except ValueError:
|
||||||
return await ctx.respond("\N{cross mark} Invalid time format. Use HH:MM.")
|
return await ctx.respond("\N{cross mark} Invalid time format. Use HH:MM.")
|
||||||
end = date.replace(hour=hour, minute=minute)
|
end = date.replace(hour=hour, minute=minute)
|
||||||
|
|
Loading…
Reference in a new issue