NancyFx/Nancy — pull request #718 by dot-i (2012-08-19 12:40:52+00:00)
Title: Fixed json datetime to be compatible with WCF

I noticed the json /Date/ format used by Nancy always used UTC datetimes and didn't include the timezone information like REST over WCF does.

I fixed the serializer to include this timezone information, and I also fixed the deserializer to recognize such timezone information if it is present, and in that case convert the datetime back to Local time rather than keeping it in UTC.

I made the change backwards compatible: if there is no timezone information or the datetime is UTC (de)serialization behaves the same as before.