diff --git a/BackendWorkerService/Quartz/Jobs/ArchiveElectricMeterDayJob.cs b/BackendWorkerService/Quartz/Jobs/ArchiveElectricMeterDayJob.cs index 1442ae2..220b566 100644 --- a/BackendWorkerService/Quartz/Jobs/ArchiveElectricMeterDayJob.cs +++ b/BackendWorkerService/Quartz/Jobs/ArchiveElectricMeterDayJob.cs @@ -99,7 +99,7 @@ namespace BackendWorkerService.Quartz.Jobs deviceNumberPoint.Point = point.points; deviceNumberPoint.FullDeviceNumberPoint = string.Format("{0}_{1}", electricMeter.Device_number, point.points); deviceNumberPoint.archive_lastDate = electricMeter.archive_lastDate; - deviceNumberPoint.created_at = electricMeter.created_at; + deviceNumberPoint.created_at = Convert.ToDateTime(electricMeter.Created_at); electricDeviceNumberPoints.Add(deviceNumberPoint); } } @@ -118,7 +118,7 @@ namespace BackendWorkerService.Quartz.Jobs deviceNumberPoint.Point = point.points; deviceNumberPoint.FullDeviceNumberPoint = string.Format("{0}_{1}", waterMeter.Device_number, point.points); deviceNumberPoint.archive_lastDate = waterMeter.archive_lastDate; - deviceNumberPoint.created_at = waterMeter.created_at; + deviceNumberPoint.created_at = Convert.ToDateTime(waterMeter.Created_at); waterDeviceNumberPoints.Add(deviceNumberPoint); } }