vendredi 31 juillet 2015

Newtonsoft Json date at different timezones

I am working on newton.json date convertions. I got stuck, unable to confirm if newtonsoft json serialize and deserialize convert dates based on local time zone.

Example: App sends date in IST time zone eg: 8/1/2015 Early Hrs, it is getting saved as 7/31/2015 evening times since the server is in PST time.

So newtonsoft json converts date to where time is getting deserialized? IF that is the case, then when that date is send back to APP it does not match.

Could you please tell me how newtonsoft date convert.serialize and Newtonsoft.Json.JsonConvert.SerializeObject timezones work.

Aucun commentaire:

Enregistrer un commentaire