Fixed is overdue

This commit is contained in:
Simon Pocrnjič 2026-03-09 19:19:43 +01:00
parent b6e66f0e64
commit 2cc765912e

View File

@ -97,7 +97,9 @@ function openAndComplete(item) {
function isOverdue(item) {
if (!item.call_back_at) return false;
return new Date(item.call_back_at) < new Date();
// Strip Z so the value is parsed as local time (datetimes are stored as local time with a wrong Z suffix)
const localDateStr = item.call_back_at.replace("Z", "").replace("T", " ");
return new Date(localDateStr) < new Date();
}
const columns = [