diff --git a/package.json b/package.json index 68ef655e..20df6dcc 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "atomic-calendar-revive", - "version": "9.0.1", + "version": "9.0.2-beta.1", "description": "Calendar Card for Home Assistant", "main": "atomic-calendar-revive.js", "scripts": { diff --git a/src/lib/eventMode.html.ts b/src/lib/eventMode.html.ts index 4e04be40..ce9631f3 100644 --- a/src/lib/eventMode.html.ts +++ b/src/lib/eventMode.html.ts @@ -145,11 +145,11 @@ export function getLocationHTML(config: atomicCardConfig, event: EventClass) { */ export function getWeekNumberHTML(day: [EventClass], currentWeek: number) { let currentWeekHTML = html`` - if (currentWeek != day[0].startDateTime.week()) { + if (currentWeek != day[0].startDateTime.isoWeek()) { if (day[0].startDateTime.isBefore(dayjs())) { - currentWeek = dayjs().week() + currentWeek = dayjs().isoWeek() } else { - currentWeek = day[0].startDateTime.week(); + currentWeek = day[0].startDateTime.isoWeek(); } currentWeekHTML = html`