Skip to content
This repository was archived by the owner on Dec 24, 2022. It is now read-only.

Conversation

@Siliconrob
Copy link
Contributor

DateTime handling is inconsistent with respect to the AssumcUtc when using the JSConfig setting.

If serializing to JSON - The JsonTypeSerializer will use the UTC specification type and convert Unspecified DateTime values to UTC in method WriteWcfJsonDate

If serializing to CSV- The JsvTypeSerializer will not use the UTC specification type and does not convert Unspecified DateTime values to UTC in method ToShortestXsdDateTimeString

Adding an internal extension method UseConfigSpecifiedSetting to match DateTime conversion between the two different serializers.

…nfig setting

DateTime handling is inconsistent with respect to the AssumcUtc when using the JSConfig setting.

If serializing to JSON - The JsonTypeSerializer will use the UTC specification type and convert Unspecified DateTime values to UTC in method "WriteWcfJsonDate"

If serializing to CSV- The JsvTypeSerializer will not use the UTC specification type and does not convert Unspecified DateTime values to UTC in method "ToShortestXsdDateTimeString"

Adding an internal extension method "UseConfigSpecifiedSetting" to match DateTime conversion between the two different serializers.
@mythz mythz merged commit 5a7ae04 into ServiceStack:master Nov 29, 2017
@mythz
Copy link
Member

mythz commented Nov 29, 2017

Cheers 👍 thx for the PR + test!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants