Compare Date with Date instead of number

This commit is contained in:
Frederic Junod
2019-05-07 14:53:52 +02:00
parent 6b1bce2b9d
commit f5ae41f03e

View File

@@ -46,7 +46,7 @@ function updateInfo() {
function setTime() {
startDate.setMinutes(startDate.getMinutes() + 15);
if (startDate > Date.now()) {
if (startDate > new Date()) {
startDate = threeHoursAgo();
}
layers[1].getSource().updateParams({'TIME': startDate.toISOString()});