diff --git a/server.js b/server.js index 7904c15..5948424 100644 --- a/server.js +++ b/server.js @@ -67,7 +67,7 @@ function getLatestSensorData(callback) { humidity: data.humidity, co2: data.co2, pressure: data.pressure, - timestamps: data.timestamp + timestamps: data.timestamp.map(row => new Date(row.timestamp).toISOString().slice(0, 19).replace('T', ' ')) }); }); }