-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
System.Xml.Serialization.XmlSerializer
does silently ignore System.DatetimeOffset
values
#1406
Comments
does silently ignore
System.DatetimeOffset` valuesSystem.Xml.Serialization.XmlSerializer
does silently ignore System.DatetimeOffset
values
@yujayee Could you see if it repro on full framework? |
It can repro on full framework, the DateTimeOffset value is silently ignored. |
This sounds like a pretty major bug, I'm astounded it was marked as "Future" |
Just hit this bug tonight. Serializing a ValueTuple which contains a DateTimeOffset and it is silently ignored! |
There is a workaround for this problem, see the full discussion on stackoverflow ...
This is definitely a bug we would like to fix, the fact that it also exists on the full framework complicates matters a bit since it is now much more difficulty to get bug fixes approved for full framework post 4.8. (See Scott's blog) The "Future" milestone simply means we can't consider it for the current 3.0 release. |
Moving into next release (5.0) |
Is there any chance of just fixing it in core and not framework for now? |
The fix will be done in Core for sure, it's too late to get into the 3.0 release so for now it is going into our next big planned release which is 5.0. It could possibly go into a 3.0 servicing release but we don't know yet if that is possible since 3.0 is not yet out the door. |
@StephenBonikowsky now that 3.0 is out the door, what is the likelihood of it being fixed in a servicing release? |
@drewfreyling Because it has a workaround we are targeting this for one of the upcoming 5.0 preview releases. So it won't be fixed in the servicing branch. |
example code
stream content
expected behavior: data does not disappear
The text was updated successfully, but these errors were encountered: