refacto: Deleting unecessary mentions and setting DB wipeout to 1 week before live production
This commit is contained in:
@@ -209,14 +209,19 @@ export function applyConfigPayload(data) {
|
||||
}
|
||||
|
||||
export function updateResetCountdown() {
|
||||
if (!GAME_CONFIG.seedPeriodEndsAtUtc) { resetCountEl.textContent = "--:--:--"; return; }
|
||||
if (!GAME_CONFIG.seedPeriodEndsAtUtc) { resetCountEl.textContent = "--d --:--:--"; return; }
|
||||
const diff = new Date(GAME_CONFIG.seedPeriodEndsAtUtc).getTime() - Date.now();
|
||||
if (diff <= 0) { resetCountEl.textContent = "00:00:00"; return; }
|
||||
if (diff <= 0) { resetCountEl.textContent = "00d 00:00:00"; return; }
|
||||
const s = Math.floor(diff / 1000);
|
||||
const days = Math.floor(s / 86400);
|
||||
const hh = Math.floor((s % 86400) / 3600);
|
||||
const mm = Math.floor((s % 3600) / 60);
|
||||
const ss = s % 60;
|
||||
resetCountEl.textContent =
|
||||
String(Math.floor(s / 3600)).padStart(2, "0") + ":" +
|
||||
String(Math.floor((s % 3600) / 60)).padStart(2, "0") + ":" +
|
||||
String(s % 60).padStart(2, "0");
|
||||
String(days).padStart(2, "0") + "d " +
|
||||
String(hh).padStart(2, "0") + ":" +
|
||||
String(mm).padStart(2, "0") + ":" +
|
||||
String(ss).padStart(2, "0");
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user