Skip to content

Commit

Permalink
Merge pull request #1200 from totaldebug/beta
Browse files Browse the repository at this point in the history
RELEASE
  • Loading branch information
marksie1988 authored Oct 5, 2023
2 parents ba384f1 + db7191b commit fe62d93
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
6 changes: 3 additions & 3 deletions src/lib/eventMode.html.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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`<div class="week-number">${localize('ui.common.week')} ${currentWeek.toString()}</div>`
Expand Down

0 comments on commit fe62d93

Please sign in to comment.