PonyEventsFederation / CanniJS

Canni Discord Bot
MIT License
4 stars 5 forks source link

[Bug] Canni's megaboops don't seem to reset at midnight #113

Closed ChrisFhey closed 3 years ago

ChrisFhey commented 3 years ago

Issue description

Moonie and Kiwi hadn't megabooped yet today, but Canni still said she couldn't megaboop someone again today.

Steps to reproduce the behavior

  1. Megaboop someone
  2. Wait until midnight's reset
  3. Try and megaboop again
  4. Canni won't megaboop

Expected result

Megaboop is possible again after midnight

Actual result

No proper megaboop reset at midnight

ChrisFhey commented 3 years ago

Checking the logs has revealed that Canni's timezone is incorrectly set to UTC. It should be set to Germany's timezone.

ChrisFhey commented 3 years ago

New timestamps for multiple megaboops:

https://discord.com/channels/602434888880095242/613024393425059981/823899984151445544 https://discord.com/channels/602434888880095242/613024393425059981/823900115486900244 https://discord.com/channels/602434888880095242/613024393425059981/823900186480082944

ChrisFhey commented 3 years ago

Timesone config var set in Heroku