From dbc7cb75a6bb09ac7b03b401cadd0187bf66815d Mon Sep 17 00:00:00 2001 From: Sebastiaan Zeeff <33516116+SebastiaanZ@users.noreply.github.com> Date: Thu, 31 Oct 2019 12:53:32 +0100 Subject: Hotfix end date of Hacktober The command is mostly used to calculate the time left in the DO's Hacktoberfest event we are participating in. However, the current end datetime was specified as a day before the actual end of the event. This hotfix remedies that for the end-calculation only. This code should get a proper fix to rework the entire logic to use the correct start and end datetimes for DO's event. --- bot/seasons/halloween/timeleft.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bot') diff --git a/bot/seasons/halloween/timeleft.py b/bot/seasons/halloween/timeleft.py index 77767baa..8cb3f4f6 100644 --- a/bot/seasons/halloween/timeleft.py +++ b/bot/seasons/halloween/timeleft.py @@ -25,7 +25,7 @@ class TimeLeft(commands.Cog): year = now.year if now.month > 10: year += 1 - end = datetime(year, 10, 31, 11, 59, 59) + end = datetime(year, 11, 1, 11, 59, 59) start = datetime(year, 10, 1) return now, end, start -- cgit v1.2.3