kotobade-asobou icon indicating copy to clipboard operation
kotobade-asobou copied to clipboard

Bug: highlighted/disabled days on calendar are off by one

Open ArtofBugs opened this issue 10 months ago • 0 comments

Describe the bug

  • When picking a past game, clicking a day highlights the day just before the one clicked, while the day written on the button matches the day clicked.
  • Disabled calendar dates start at the day before today. (Together with the previous point, this also means I can't click the games for today, yesterday, or the day before if they are all in the same row... :P )

I have not tested this during all hours of the day, but since it's an off-by-one I would guess it has to do with the fact that it's already tomorrow in some time zones, including UTC...

To Reproduce Steps to reproduce the behavior:

  1. Go to the past games dialog.
  2. Click on a day.
  3. Observe that the highlighted day in the calendar is the day before and the day selected on the "Choose [date]" button is the day you clicked. Also observe that the disabled days start at the day before today.
  4. Click either the "Choose today" or the "Choose [date]" buttons and observe that they work perfectly correctly for some reason ;)

Expected behavior No off-by-ones :)

Screenshots For my time zone (I have checked that it is properly selected in the settings), today is April 10th. image

Desktop (please complete the following information):

  • OS: Linux Mint
  • Browser: Firefox
  • Version: 124.0.2 (64-bit)

Additional context Let me know if you need any more info from me :)

ArtofBugs avatar Apr 11 '24 06:04 ArtofBugs