use current month for last_updated value

This commit is contained in:
jomo 2024-02-01 00:03:33 +01:00
parent f1384b72f2
commit 621db6ad2c
2 changed files with 8 additions and 7 deletions

View file

@ -176,5 +176,6 @@ function formCoordsToMap() {
function formatTimestamp(ts) {
const date = new Date(ts * 1000);
return date.toLocaleDateString();
// using Swedish format as a hack to get an iso formatted date
return date.toLocaleDateString("sv", {timeZone: "UTC"}).replace(/\-\d+$/,'')
}