RestSharp deserialization of RFC 2822 date format to DateTime

165 views
Skip to first unread message

Stephen Okano

unread,
May 17, 2012, 6:47:14 PM5/17/12
to rest...@googlegroups.com
Recently we found an issue in the Twilio .NET client which uses RestSharp for deserialization of DateTime. Their dates are sent in the format:

All dates and times in requests from Twilio are GMT in RFC 2822 format. For example, 6:13 PM PDT on August 19th, 2010 would be 'Fri, 20 Aug 2010 01:13:42 +0000'

However, upon deserializing them, the DateTime comes back with Kind equal to Unspecified. It should instead have Kind equal to UTC
Reply all
Reply to author
Forward
0 new messages