V0.6.6 Arroyo Toad
Fixed timestamp format
This commit is contained in:
parent
d0d7799d62
commit
42ea0fb553
@ -35,7 +35,7 @@ iotDataV1.post("/data", async (context) => {
|
||||
const datum : IoTDatum = {
|
||||
deviceType: message.deviceType,
|
||||
deviceID: Number(message.deviceID),
|
||||
timestamp: new Date(message.timestamp).toISOString(),
|
||||
timestamp: new Date(message.timestamp * 1000).toDateString(),
|
||||
xCoordinates: Number(message.location.x),
|
||||
yCoordinates: Number(message.location.y),
|
||||
zCoordinates: Number(message.location.z),
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user