Skip to content

Commit

Permalink
add a console log to check if updateDateAtMidnight is really working
Browse files Browse the repository at this point in the history
  • Loading branch information
fivaz committed Jul 16, 2024
1 parent f7952ae commit ea16dd0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lib/components/calendar/Calendar.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
let weekStart = startOfWeek(new Date(), { weekStartsOn: 1 });
function updateDateAtMidnight() {
console.warn('updateDateAtMidnight');
const now = new Date();
const timeUntilMidnight = differenceInMilliseconds(endOfToday(), now);
Expand Down

0 comments on commit ea16dd0

Please sign in to comment.