diff --git a/public/app-mapbox.js b/public/app-mapbox.js index 763794c..dcd4dce 100644 --- a/public/app-mapbox.js +++ b/public/app-mapbox.js @@ -165,7 +165,7 @@ document.addEventListener('DOMContentLoaded', async () => { tableLocationCount.textContent = `${locations.length} active report${locations.length !== 1 ? 's' : ''}`; }; - // Calculate time remaining until 24-hour expiration + // Calculate time remaining until 48-hour expiration const getTimeRemaining = (timestamp, persistent = false) => { if (persistent) { return 'Persistent'; @@ -173,7 +173,7 @@ document.addEventListener('DOMContentLoaded', async () => { const now = new Date(); const reportTime = new Date(timestamp); - const expirationTime = new Date(reportTime.getTime() + 24 * 60 * 60 * 1000); + const expirationTime = new Date(reportTime.getTime() + 48 * 60 * 60 * 1000); const remaining = expirationTime - now; if (remaining <= 0) return 'Expired'; @@ -196,7 +196,7 @@ document.addEventListener('DOMContentLoaded', async () => { const now = new Date(); const reportTime = new Date(timestamp); - const expirationTime = new Date(reportTime.getTime() + 24 * 60 * 60 * 1000); + const expirationTime = new Date(reportTime.getTime() + 48 * 60 * 60 * 1000); const remaining = expirationTime - now; const hoursRemaining = remaining / (1000 * 60 * 60);