[Bug]: Reports cards are showing the wrong months in the dashboard #1541

Closed
opened 2026-02-28 19:46:48 -06:00 by GiteaMirror · 2 comments
Owner

Originally created by @youngcw on GitHub (Oct 24, 2024).

Verified issue does not already exist?

  • I have searched and found no existing issue
  • I will be providing steps how to reproduce the bug (in most cases this will also mean uploading a demo budget file)

What happened?

All reports that list a month or month range in their cards are off by one. Opening the report list the correct months.
image
Default report, taken in October

Inside the report
image

Where are you hosting Actual?

None

What browsers are you seeing the problem on?

No response

Operating System

None

Originally created by @youngcw on GitHub (Oct 24, 2024). ### Verified issue does not already exist? - [X] I have searched and found no existing issue - [X] I will be providing steps how to reproduce the bug (in most cases this will also mean uploading a demo budget file) ### What happened? All reports that list a month or month range in their cards are off by one. Opening the report list the correct months. ![image](https://github.com/user-attachments/assets/51e3d93a-4985-4746-a49e-8b9911932b07) Default report, taken in October Inside the report ![image](https://github.com/user-attachments/assets/1c199e55-437b-44df-9d60-7235a003eb21) ### Where are you hosting Actual? None ### What browsers are you seeing the problem on? _No response_ ### Operating System None
GiteaMirror added the reportsbug labels 2026-02-28 19:46:48 -06:00
Author
Owner

@carkom commented on GitHub (Oct 25, 2024):

I know we've discussed this before and we even had a PR merged at one point to fix it (#3295).

What browser is it? My cards are fine on Windows - Firefox. However, if I check the same server with the same budget on Windows - Chrome, I experience the issue you show above. Is this something wrong with the browser in some way?

@carkom commented on GitHub (Oct 25, 2024): I know we've discussed this before and we even had a PR merged at one point to fix it (#3295). What browser is it? My cards are fine on Windows - Firefox. However, if I check the same server with the same budget on Windows - Chrome, I experience the issue you show above. Is this something wrong with the browser in some way?
Author
Owner

@carkom commented on GitHub (Oct 25, 2024):

I did some digging. Chrome is in explicably subtracting 7 hours when we parse the date using new Date(date) which is giving us the day before. So 2024-10-01 becomes 2024-09-30. I'll put in a fix for it.

@carkom commented on GitHub (Oct 25, 2024): I did some digging. Chrome is in explicably subtracting 7 hours when we parse the date using `new Date(date)` which is giving us the day before. So 2024-10-01 becomes 2024-09-30. I'll put in a fix for it.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/actual#1541