modified: server.js

This commit is contained in:
IrisVega 2024-07-20 17:35:24 +08:00
parent fd97592179
commit 3ae436f20f

View File

@ -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', ' '))
});
});
}