Browse Source

Update mysql DateTimeOffset

pull/31/head
sunkaixuan 2 years ago
parent
commit
b0c4b4a583
  1. 4
      Src/Asp.Net/SqlSugar/Abstract/DbBindProvider/IDataRecordExtensions.cs

4
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
{

Loading…
Cancel
Save