Merge pull request #127 from SyncrowIOT/roles-and-permissions

changed date string to iso
This commit is contained in:
yousef-khriasat-uba
2024-10-27 11:38:21 +03:00
committed by GitHub

View File

@ -197,7 +197,7 @@ export class DeviceStatusFirebaseService {
eventId: addDeviceStatusDto.log.dataId,
eventTime: new Date(
addDeviceStatusDto.log.properties[0].time,
).toLocaleDateString(),
).toISOString(),
});
await this.deviceStatusLogRepository.save(newLog);
// Save the updated data to Firebase