mirror of
https://github.com/SyncrowIOT/backend.git
synced 2025-11-26 17:44:54 +00:00
Merge pull request #127 from SyncrowIOT/roles-and-permissions
changed date string to iso
This commit is contained in:
@ -197,7 +197,7 @@ export class DeviceStatusFirebaseService {
|
|||||||
eventId: addDeviceStatusDto.log.dataId,
|
eventId: addDeviceStatusDto.log.dataId,
|
||||||
eventTime: new Date(
|
eventTime: new Date(
|
||||||
addDeviceStatusDto.log.properties[0].time,
|
addDeviceStatusDto.log.properties[0].time,
|
||||||
).toLocaleDateString(),
|
).toISOString(),
|
||||||
});
|
});
|
||||||
await this.deviceStatusLogRepository.save(newLog);
|
await this.deviceStatusLogRepository.save(newLog);
|
||||||
// Save the updated data to Firebase
|
// Save the updated data to Firebase
|
||||||
|
|||||||
Reference in New Issue
Block a user