fix hours countdown value

This commit is contained in:
2025-09-06 20:38:34 -04:00
parent dfef5740f7
commit 9d085a1169
+1 -1
View File
@@ -13,7 +13,7 @@ export default function Countdown() {
const days = Math.floor(difference / (1000 * 60 * 60 * 24)); const days = Math.floor(difference / (1000 * 60 * 60 * 24));
const hours = Math.floor( const hours = Math.floor(
difference / (1000 * 60 * 60 * 24) / (1000 * 60 * 60) (difference % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60)
); );
const minutes = Math.floor((difference % (1000 * 60 * 60)) / (1000 * 60)); const minutes = Math.floor((difference % (1000 * 60 * 60)) / (1000 * 60));
const seconds = Math.floor((difference % (1000 * 60)) / 1000); const seconds = Math.floor((difference % (1000 * 60)) / 1000);