Skip to content

Commit

Permalink
fix missing TimeSpanConverter
Browse files Browse the repository at this point in the history
  • Loading branch information
GioviQ committed Oct 20, 2020
1 parent cbfb649 commit 8823cdd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Breeze.Sharp/JNode.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@


using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
using Newtonsoft.Json.Linq;
Expand Down Expand Up @@ -318,6 +318,7 @@ public Stream SerializeTo(Stream stream) {
public TextWriter SerializeTo(TextWriter textWriter) {
var serializer = new JsonSerializer();
serializer.Converters.Add(new StringEnumConverter());
serializer.Converters.Add(new TimeSpanConverter());

#if DEBUG
serializer.Formatting = Formatting.Indented;
Expand Down

0 comments on commit 8823cdd

Please sign in to comment.