question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Week numbers may be wrong

See original GitHub issue

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

In Denmark, the week number 1 starts on the first week with 4 days in the new year. This means that right now, 2022-06-23 is week 25, while this calendar card says week 26.

image

You can compare this with ugenr.dk, which shows the current week number.

Expected behaviour

I was expecting a setting that could configure this behavior, but I couldn’t find anything (besides which day was the first day of the week.

I’m hoping that something like moment would be able to handle this. I checked on a device with danish locale, and it also showed week 26, so it’s not applying currently.

Steps To Reproduce

Should occur always, at least for Danish users.

Card Version

v7.0.0

Home Assistant Version

2022.6.6

Configuration

type: custom:atomic-calendar-revive
entities:
  - calendar.my_calendar
showCalendarName: true
showWeekDay: true
sortByStartTime: true
showDate: true
dateFormat: dddd, DD MMMM HH:mm
hoursFormat: HH:mm
maxDaysToShow: 6
refreshInterval: 60
showWeekNumber: true
disableLocationLink: true
disableEventLink: true
showNoEventsForToday: true
dimFinishedEvents: true
fullDayEventText: Hele dagen
noEventText: Ingen events
showProgressBar: false
hideFinishedEvents: true
showRelativeTime: true
hideDuplicates: true
showMultiDay: true
showMultiDayEventParts: true
showCurrentEventLine: false
noEventsForNextDaysText: Ingen kalender info
firstDayOfWeek: 1

Relevant log output

N/A

Code of Conduct

  • I agree to follow this project’s Code of Conduct

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
LordMikecommented, Jun 23, 2022

Additionally, when the current locale is danish, “Week” isn’t translated… 😃

PR created, #720. Untested, hoping Typescript build will tell me if it works.

0reactions
csabatthcommented, Dec 14, 2022

Hello, I’m experiencing the same issue. It seems that only the “en-gb” version shows the “correct” week number and all the other ones don’t. I’m using “en-gb” and “hu”. I assume that the only workaround is to set HA local to en-gb and reinstall the component or are there other alternatives?

Thank you!

Read more comments on GitHub >

github_iconTop Results From Across the Web

My calendar shows the wrong week numbers
The problem is that it started week 1 on the 28th of December and not the 4th of January. So it skipped week...
Read more >
Week numbers in the Calendar are wrong - MSOutlook.info
I've added week numbers to my Calendar but they don't seem to match with my desk calendar which I believe is correct. How...
Read more >
Why are Calendar week numbers wrong? (and why no one at
And when I display the week numbers, it shows a wrong number. The number showing is always +1 than the reality. Often it...
Read more >
Week number appears to be wrong - Agenda Community
OSX supports the ISO based Calendar, and the week number shows correctly on the system calendar app and agenda in that OS (after...
Read more >
Don't Miss a Meeting because of Wrong Week Numbers in ...
In this #shorts video I'll show you how you can fix wrong week numbers in Microsoft Outlook. You can easily add week numbers...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found