diff --git a/APPL/Shared/header.inc b/APPL/Shared/header.inc index 670a4eed3d..4c3f8d4973 100644 --- a/APPL/Shared/header.inc +++ b/APPL/Shared/header.inc @@ -443,7 +443,7 @@ FCLTHeader = var tinc = new Date(hinc.DateLastModified); if (tcsx > tcss || tinc > tcss) { - __Log("{0} is older ({1}) than default.csx ({2}), refreshing it.".format(this._templateCss, toDateTimeString(tcss, true), toDateTimeString(tcsx, true))); + __Log("{0} is older ({1}) than default.csx ({2}), refreshing it.".format(this._templateCss, toISODateTimeString(tcss, true), toISODateTimeString(tcsx, true))); this.generateTemplateCss(); } } diff --git a/APPL/Shared/logger.inc b/APPL/Shared/logger.inc index 71a87676db..236717f8bd 100644 --- a/APPL/Shared/logger.inc +++ b/APPL/Shared/logger.inc @@ -426,6 +426,12 @@ function toISODateString(jsDate) function toISODateTimeString(jsDate) { + if (typeof jsDate == "object" && jsDate.type == 135/*adDBTimeStamp, oRs("datum")*/) + jsDate = new Date(jsDate.value); + + if (typeof jsDate == "date") // een oRs("datum").value + jsDate = new Date(jsDate); + return toISODateString(jsDate) + " " + padout(jsDate.getHours()) + ":" + padout(jsDate.getMinutes()) + ":" + padout(jsDate.getSeconds()); }