Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

First day of the week not consistent, displaying wrong dates #1596

Open
2 tasks done
ylwsub68 opened this issue Dec 2, 2024 · 2 comments
Open
2 tasks done

First day of the week not consistent, displaying wrong dates #1596

ylwsub68 opened this issue Dec 2, 2024 · 2 comments
Labels
type/bug Something isn't working

Comments

@ylwsub68
Copy link

ylwsub68 commented Dec 2, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

In calendar view, I have the first day set to 0 (Sunday). The days of the week still show up with Monday first, but the dates in the calendar grid show up as if Sunday was the first day. For December 2024 for example, it shows December 2 as Tuesday, when it is actually Monday. Additionally, when I go back into the options, the "first day of the week" option keeps getting set back to 1 after I set it to 0.

Expected behaviour

Matching dates and days!

Steps To Reproduce

Incorrect calendar shows up on a Chromium browser running on a Raspberry Pi. Shows incorrect sometimes on a Chrome browser on Windows. HA running on a Raspberry Pi.

Mode

Calendar

Card Version

10.0.0

Home Assistant Version

2024.11.1

Configuration

No response

Relevant log output

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@ylwsub68 ylwsub68 added the type/bug Something isn't working label Dec 2, 2024
Copy link

github-actions bot commented Dec 2, 2024

Hello @ylwsub68, thank you for your interest in our work!
If this is a bug report, please provide your configuration and any screenshots that would assist troubleshooting, otherwise we can not help you.

@sampellino
Copy link

sampellino commented Dec 4, 2024

I am experiencing the same issue. Looks like the value of firstDayOfWeek is being ignored. If I change it, the lovelace card's preview updates correctly, but the calendar within the dashboard does not update.

Before YAML/GUI update:
image

image

After YAML/GUI Update:
image
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants