Skip to content

Commit 0302f24

Browse files
authored
Merge pull request #1989 from appwrite/fix/fix-countdown-timer
Round days down
2 parents 19870b1 + 3f03d9d commit 0302f24

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/utils/create-countdown.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export const createCountdown = (date: Date) => {
2121
const totalMinutes = Math.floor(totalSeconds / 60);
2222
minutes.set(totalMinutes % 60);
2323
hours.set(Math.floor(totalMinutes / 60));
24-
days.set(Math.ceil(get(hours) / 24));
24+
days.set(Math.floor(get(hours) / 24));
2525
}
2626

2727
update();

0 commit comments

Comments
 (0)