- Add parseUTCDate helper function to handle timestamp UTC parsing consistently - Eliminates code duplication across getTimeAgo, getTimeRemaining, and expiry functions - Applied to admin.js, app-mapbox.js, app-google.js, and app.js - Ensures consistent UTC timezone handling throughout all frontend JavaScript - Addresses Copilot AI feedback for better code maintainability and DRY principles The parseUTCDate function handles the logic: timestamp.includes('T') ? timestamp : timestamp + 'Z' This ensures all timestamp parsing uses the same UTC interpretation logic. |
||
---|---|---|
.. | ||
admin.html | ||
admin.js | ||
app-google.js | ||
app-mapbox.js | ||
app.js | ||
favicon.svg | ||
index.html | ||
privacy.html | ||
style-backup.css | ||
style.css |