Address #109
Ok so this was a bit dumb on the Newtonsoft.Json side of things, parsing raw strings get interpreted as dates if they look like dates and this is a default behaviour 😱
let json = "[ \"2019-04-01T16:00:00+05:00\" ]"
let parsed = JToken.Parse(json)
parsed.ToString() // [ "2019-04-01T16:00:00+02:00"]
Luckily this can be overridden:
let json = "[ \"2019-04-01T16:00:00+05:00\" ]"
let settings = JsonSerializerSettings(DateParseHandling = DateParseHandling.None)
let parsed = JsonConvert.DeserializeObject<JToken>(json, settings)
Address #109 Ok so this was a bit dumb on the Newtonsoft.Json side of things, parsing raw strings get interpreted as dates if they look like dates and this is a default behaviour 😱
Luckily this can be overridden: