diff --git a/changelog.txt b/changelog.txt index e8da68a45..b8e3f4f91 100644 --- a/changelog.txt +++ b/changelog.txt @@ -6,6 +6,7 @@ - Fix: [#27] Adding day balance on when to leave bar after day is done - Fix: [#210] Count today preference is respected - Fix: [#211] Adjusted preferences window size to fit the whole content +- Fix: [#232] Calendar not advancing to next day when system clock does - Fix: [#233] Fixes crash when opening the waiver for a day - Fix: [#229] Count Today in totals no longer causes problem in the month balance - Fix: [#239] Punch button is disabled when current day is waived diff --git a/js/classes/Calendar.js b/js/classes/Calendar.js index 63c3374c6..67bb720ad 100644 --- a/js/classes/Calendar.js +++ b/js/classes/Calendar.js @@ -406,6 +406,10 @@ class Calendar { this._draw(); } + goToCurrentDate() { + this._goToCurrentDate(); + } + /* * Display next month. */ diff --git a/main.js b/main.js index 63c27c376..5e68e0024 100644 --- a/main.js +++ b/main.js @@ -107,7 +107,7 @@ function refreshOnDayChange() { { launchDate = today; // Reload only the calendar itself to avoid a flash - win.webContents.executeJavaScript('calendar.redraw()'); + win.webContents.executeJavaScript('calendar.goToCurrentDate()'); } }