totaldebug / atomic-calendar-revive

An advanced calendar card for Home Assistant Lovelace.
https://docs.totaldebug.uk/atomic-calendar-revive
MIT License
474 stars 73 forks source link

Events view shows week numbers on the wrong day #1455

Closed DrJackieBright closed 8 months ago

DrJackieBright commented 8 months ago

Is there an existing issue for this?

Current Behavior

The week number shows between Sunday and Monday image

Expected behaviour

The week number should show before your set first day of the week. Friday in this case image

Steps To Reproduce

  1. Set up the card
  2. Set to event mode
  3. Set "First day of the week" to a number other than zero

Mode

Event (default)

Card Version

9.6.2

Home Assistant Version

2023.12.3

Configuration

type: custom:atomic-calendar-revive
name: Calendar
enableModeChange: true
entities:
  - entity: calendar.holidays_in_united_states
    name: Holidays in united states
  - entity: calendar.family
    name: Family
  - entity: calendar.ical_work
    name: Work
    icon: [redacted]
    color: red
  - entity: calendar.birthdays
    name: Birthdays
  - entity: calendar.[redacted]
    name: [redacted]
showDate: true
showLocation: false
hideFinishedEvents: false
hideDuplicates: true
showCurrentEventLine: true
showMonth: true
showWeekDay: true
showDescription: true
showNoEventsForToday: true
showFullDayProgress: true
showCalendarName: false
showWeekNumber: true
showDatePerEvent: false
showAllDayHours: true
hoursOnSameLine: false
dimFinishedEvents: true
showEventDate: true
showProgressBar: true
showMultiDayEventParts: false
showMultiDay: false
defaultMode: Event
showEventIcon: true
startDaysAhead: -1
compactMode: false
offsetHeaderDate: false
showNoEventDays: true
maxDaysToShow: 21
cardHeight: 100%
showTimeRemaining: true
untilText: '-'
firstDayOfWeek: 5

Relevant log output

No response

Code of Conduct

github-actions[bot] commented 8 months ago

Hello @DrJackieBright, 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.

marksie1988 commented 8 months ago

Week numbers follow the ISO8601 format, they are done by date not weekdays and it runs Monday to Sunday.