From b0c4b4a5838011148ce328fe3c8b7cb024c79995 Mon Sep 17 00:00:00 2001 From: sunkaixuan <610262374@qq.com> Date: Tue, 28 Mar 2023 16:49:32 +0800 Subject: [PATCH] Update mysql DateTimeOffset --- .../SqlSugar/Abstract/DbBindProvider/IDataRecordExtensions.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Src/Asp.Net/SqlSugar/Abstract/DbBindProvider/IDataRecordExtensions.cs b/Src/Asp.Net/SqlSugar/Abstract/DbBindProvider/IDataRecordExtensions.cs index 969256b82..db9753f40 100644 --- a/Src/Asp.Net/SqlSugar/Abstract/DbBindProvider/IDataRecordExtensions.cs +++ b/Src/Asp.Net/SqlSugar/Abstract/DbBindProvider/IDataRecordExtensions.cs @@ -211,7 +211,7 @@ namespace SqlSugar var date = dr.GetValue(i); if (date is DateTime) { - return UtilMethods.GetDateTimeOffsetByDateTime((DateTime)(date)); + return new DateTimeOffset((DateTime)(date)); } else { @@ -229,7 +229,7 @@ namespace SqlSugar var date = dr.GetValue(i); if (date is DateTime) { - return UtilMethods.GetDateTimeOffsetByDateTime((DateTime)(date)); + return new DateTimeOffset((DateTime)(date)); } else {