From 3ae436f20fa988bb94be48dee32054557416677d Mon Sep 17 00:00:00 2001 From: IrisVega Date: Sat, 20 Jul 2024 17:35:24 +0800 Subject: [PATCH] modified: server.js --- server.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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', ' ')) }); }); }