Closed rrajewski closed 8 years ago
You could try changing the JsonSerializerSettings.DateParseHandling
to DateParseHandling.DateTimeOffset
(instead of DateTime), which would cause all dates to be parsed into DateTimeOffsets. That would probably break a bunch of other stuff, though.
I put in a fix for this particular case; no DateParseHandling change required.
Awesome. Thanks!
This error occurs when trying to save changes to an entity that has a DateTimeOffset property and the entityInfo.OriginalValuesMap contains a value for that column. It seems that the when the OriginalValuesMap is parsed into a KVP, a DateTime instead of DateTimeOffset type is used for the value of the column.
Has anyone else run into this?