Skip to content

Conversation

briangweber
Copy link
Contributor

It appears that ServiceStack's default serialization for TimeSpan is ISO 8601, which causes an exception during deserialization in RestSharp. XmlConvert handles this format, so we'll attempt normal TimeSpan.Parse and failing that, attempt XmlConvert.

@hallem
Copy link
Member

hallem commented Feb 23, 2015

This looks good so far. Thanks for the tests and the PR. I'll review it this week and get it merged in.

hallem added a commit that referenced this pull request Mar 23, 2015
Adding support for deserializing ISO 8601 durations as TimeSpan in JSON
@hallem hallem merged commit 3642ea4 into restsharp:master Mar 23, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants