From 6d1b7364b2262983db8ea629830da59b1faa0132 Mon Sep 17 00:00:00 2001 From: Steven Marks Date: Thu, 5 Oct 2023 19:53:46 +0000 Subject: [PATCH 1/2] fix: week number not correct in some countries fix #1070 --- src/lib/eventMode.html.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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`
${localize('ui.common.week')} ${currentWeek.toString()}
` From db7191ba133c75e0a410a08c92ef958ee4e98804 Mon Sep 17 00:00:00 2001 From: semantic-release-bot Date: Thu, 5 Oct 2023 19:54:57 +0000 Subject: [PATCH 2/2] chore(release): 9.0.2-beta.1 [skip ci] ## [9.0.2-beta.1](https://github.com/totaldebug/atomic-calendar-revive/compare/v9.0.1...v9.0.2-beta.1) (2023-10-05) ### Bug Fixes * week number not correct in some countries ([6d1b736](https://github.com/totaldebug/atomic-calendar-revive/commit/6d1b7364b2262983db8ea629830da59b1faa0132)), closes [#1070](https://github.com/totaldebug/atomic-calendar-revive/issues/1070) --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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": {