Skip to content

Commit

Permalink
...
Browse files Browse the repository at this point in the history
  • Loading branch information
AdamBenes3 committed Dec 1, 2023
1 parent b8a2c4e commit 61cc5d0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions views/index.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 61cc5d0

Please sign in to comment.