Skip to content

Commit

Permalink
Merge pull request #808 from clement911/timezone-parsing-fix
Browse files Browse the repository at this point in the history
Avoid using JObject.Parse because it doesn't preserve timezones
  • Loading branch information
clement911 authored Nov 15, 2022
2 parents c401a3b + 98dfa3a commit 9c1cf57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ShopifySharp/Infrastructure/Serializer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ private static JsonSerializerSettings CreateSettings()

public static T Deserialize<T>(string json, string rootElementPath)
{
var jToken = JObject.Parse(json).SelectToken(rootElementPath);
var jToken = Deserialize<JToken>(json).SelectToken(rootElementPath);
return jToken.ToObject<T>(JsonSerializer.Create(CreateSettings()));
}
}
Expand Down

0 comments on commit 9c1cf57

Please sign in to comment.