Mar 22, 2013 at 5:04 PM
Edited Mar 22, 2013 at 5:05 PM
I'm using JSON.NET to send data up to a server, and alas the server's date format processing requires the date format to be:
If I set the timezone handling on my converter to UTC I get a string that looks like this:
This results in an error from the server saying the date isn't in the right format, I assume because of the trailing Z.
I tried writing a custom converter for the date, based on IsoDateTimeConverter and overriding the WriteJson() method. Unfortunately it doesn't look like there is a way to intercept the converted string to strip the Z before the base method actually writes the
string to the JsonWriter.
Anyone have suggestions for how to resolve this?