-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DateTimeOffset serialization failure #17
Comments
PR'd - I realize this repo has seen no activity in 4 years, but it's here if someone wants it. |
Thank you very much for this PR! |
There is one more critical error. This serializer does not preserve Kind property. Let's modify your example:
Then
Now let's examine actualDt.Date.Kind :
|
I've just merged the PR of @anderslyman. Thanks! |
When serializing/deserializing
DateTimeOffset
properties, the date is set to the default value of1/1/0001 12:00:00 AM +00:00
.Conversely,
DateTime
properties work as expected.LINQPad script: http://share.linqpad.net/i8covu.linq
Yields:
The text was updated successfully, but these errors were encountered: