Fin de campagne le 04/08

This commit is contained in:
JosephK 2018-06-14 12:38:34 +02:00
parent 59930ef3c5
commit b7ab05dec2

View file

@ -9,7 +9,7 @@ $(
}, 500); }, 500);
}); });
const end = new Date('07/08/2018 11:59 PM'); const end = new Date('04/08/2018 11:59 PM');
const now = new Date(); const now = new Date();
const days = (end - now < 0) ? 0 : Math.floor((end - now) / 86400000); // 24*60*60*1000 const days = (end - now < 0) ? 0 : Math.floor((end - now) / 86400000); // 24*60*60*1000
document.getElementById('kkbbDays').innerHTML = days; document.getElementById('kkbbDays').innerHTML = days;