From 45c03969ecdfba43e2d1b21f9a521a6bd5dd1e27 Mon Sep 17 00:00:00 2001 From: "jay.chang" Date: Mon, 4 Mar 2024 16:48:26 +0800 Subject: [PATCH] =?UTF-8?q?[BGService]=E4=BF=AE=E6=94=B9=E5=B0=8F=E5=95=8F?= =?UTF-8?q?=E9=A1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Quartz/Jobs/ArchiveElectricMeterDayJob.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); } }