Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

set date format hint for json deserializer

  • Loading branch information...
commit eb767b48b4bb224babfc6867bef52b0343a57fe1 1 parent 25b5bc7
John Sheehan johnsheehan authored
Showing with 3 additions and 0 deletions.
  1. +3 −0  src/Twilio.Api/Core.cs
3  src/Twilio.Api/Core.cs
View
@@ -1,5 +1,6 @@
using RestSharp;
using System.Reflection;
+using RestSharp.Deserializers;
namespace Twilio
{
@@ -66,6 +67,8 @@ public T Execute<T>(RestRequest request) where T : new()
}
};
+ request.DateFormat = "ddd, dd MMM yyyy HH:mm:ss '+0000'";
+
var response = _client.Execute<T>(request);
return response.Data;
}
Please sign in to comment.
Something went wrong with that request. Please try again.