Open sliekens opened 1 month ago
Add the ability to serialize DateOnly (and TimeOnly) to and from XML.
DateOnly
TimeOnly
The XmlSerializer will happily write DateOnly to XML by calling ToString() (not an ISO format).
XmlSerializer
ToString()
The receiving end then crashes with an exception:
Thrown from this code: https://github.com/Particular/NServiceBus/blob/16511c5f32a36f6c128324abfdfd6a2bfb871ca3/src/NServiceBus.Core/Serializers/XML/XmlDeserialization.cs#L490
Serialize DateOnly to yyyy-MM-dd
yyyy-MM-dd
DateTime
string
No response
Thank you for submitting the feature request - we will consider it in a future platform enhancement release. In the meantime, we have updated our documentation to reflect that DateOnly is currently not supported.
Describe the feature.
Add the ability to serialize
DateOnly
(andTimeOnly
) to and from XML.Is your feature related to a problem? Please describe.
The
XmlSerializer
will happily writeDateOnly
to XML by callingToString()
(not an ISO format).The receiving end then crashes with an exception:
Thrown from this code: https://github.com/Particular/NServiceBus/blob/16511c5f32a36f6c128324abfdfd6a2bfb871ca3/src/NServiceBus.Core/Serializers/XML/XmlDeserialization.cs#L490
Describe the requested feature
Serialize
DateOnly
toyyyy-MM-dd
Describe alternatives you've considered
DateTime
, but time zones scare mestring
and parse theDateOnly
myself, thanks but no thanksAdditional Context
No response