This commit is contained in:
2020-12-24 19:50:12 +00:00
parent 74b97a3ed0
commit 47924aaf5e
3 changed files with 17 additions and 14 deletions

View File

@@ -227,6 +227,19 @@ export default {
});
}
},
///////////////////////////////////////////////
// Date/time past or future evaluation
//
dateIsPast(value) {
if (!value) {
return false;
}
if (value == "") {
return false;
}
return new Date(value) < new Date();
},
///////////////////////////////////////////
// Turn a decimal number into a local
// currency display

View File

@@ -772,6 +772,9 @@ function buildRecords(listData, columndefinitions) {
languageName,
hour12
);
if (!window.$gz.locale.dateIsPast(column.v)) {
cstStyle = { "font-weight": "bold" }; //warning, don't put a semicolon after the style or it will not work
}
break;
case 2: //date only
display = window.$gz.locale.utcDateToShortDateLocalized(