diff --git a/src/EFCore.Jet/Storage/Internal/JetDateTimeOffsetTypeMapping.cs b/src/EFCore.Jet/Storage/Internal/JetDateTimeOffsetTypeMapping.cs index b3df018..e345edc 100644 --- a/src/EFCore.Jet/Storage/Internal/JetDateTimeOffsetTypeMapping.cs +++ b/src/EFCore.Jet/Storage/Internal/JetDateTimeOffsetTypeMapping.cs @@ -40,13 +40,13 @@ namespace EntityFrameworkCore.Jet.Storage.Internal // OLE DB can't handle the DateTimeOffset type. if (parameter.Value is DateTimeOffset dateTimeOffset) { - parameter.Value = dateTimeOffset.UtcDateTime; + parameter.Value = dateTimeOffset.DateTime; } base.ConfigureParameter(parameter); } protected override DateTime ConvertToDateTimeCompatibleValue(object value) - => ((DateTimeOffset) value).UtcDateTime; + => ((DateTimeOffset) value).DateTime; } } \ No newline at end of file