diff --git a/views/index.ejs b/views/index.ejs index 29879ec..69b4018 100644 --- a/views/index.ejs +++ b/views/index.ejs @@ -611,7 +611,7 @@ .then(data => { if (data) { car1 = data.data; - var timestamp = new Date(car1.timestamp); + var timestamp = new Date(car1.tmp); timestamp.setHours(timestamp.getHours() + 1); var currentTimestamp = new Date(); var timeDifferenceInSeconds = (currentTimestamp - timestamp) / 1000; @@ -642,7 +642,7 @@ .then(data => { if (data) { car2 = data.data; - var timestamp = new Date(car2.timestamp); + var timestamp = new Date(car2.tmp); timestamp.setHours(timestamp.getHours() + 1); var currentTimestamp = new Date(); var timeDifferenceInSeconds = (currentTimestamp - timestamp) / 1000; @@ -672,7 +672,7 @@ .then(data => { if (data) { car3 = data.data; - var timestamp = new Date(car3.timestamp); + var timestamp = new Date(car3.tmp); timestamp.setHours(timestamp.getHours() + 1); var currentTimestamp = new Date(); var timeDifferenceInSeconds = (currentTimestamp - timestamp) / 1000;