aboutsummaryrefslogtreecommitdiffstats
path: root/bot
diff options
context:
space:
mode:
authorGravatar Sebastiaan Zeeff <[email protected]>2019-10-31 12:53:32 +0100
committerGravatar GitHub <[email protected]>2019-10-31 12:53:32 +0100
commitdbc7cb75a6bb09ac7b03b401cadd0187bf66815d (patch)
tree7ab6ac5dbf63c3089c5802b57b9b7ee24287842d /bot
parentHacktober issue finder fix - divide count by 100 (#301) (diff)
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.
Diffstat (limited to 'bot')
-rw-r--r--bot/seasons/halloween/timeleft.py2
1 files changed, 1 insertions, 1 deletions
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