GrafeasGroup / buttercup

Our personal assistant in Discord
MIT License
5 stars 2 forks source link

Fix error when executing `/leaderboard` without after but with before time #142

Closed TimJentzsch closed 2 years ago

TimJentzsch commented 2 years ago

Relevant issue: Closes #141

Description:

The datetime that is used to calculate the duration of the leaderboard time when no after time was provided was timezone naive. This resulted in a timezone error when the duration was calculated and made the command fail. It now has UTC added to avoid this problem.

Checklist: