Fixed is overdue
This commit is contained in:
parent
b6e66f0e64
commit
2cc765912e
|
|
@ -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 = [
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user