Skip to content

Commit

Permalink
apply DateParseHandling.None to fix the datetime mismatch (#1367)
Browse files Browse the repository at this point in the history
  • Loading branch information
soujay committed Jun 15, 2023
1 parent 19c22e1 commit a411beb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public virtual void Display(string message)
var text = message;
try
{
var jObject = JObject.Parse(message);
var jObject = JsonConvert.DeserializeObject<JObject>(message, new JsonSerializerSettings { DateParseHandling = DateParseHandling.None });
text = jObject.GetFormatted();
}
catch (JsonReaderException)
Expand Down

0 comments on commit a411beb

Please sign in to comment.