fix hours countdown value
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user