From 8823cdd7c2a19f1806d5501f021643ef3547d6ee Mon Sep 17 00:00:00 2001 From: GioviQ Date: Tue, 20 Oct 2020 15:32:44 +0200 Subject: [PATCH] fix missing TimeSpanConverter --- Breeze.Sharp/JNode.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Breeze.Sharp/JNode.cs b/Breeze.Sharp/JNode.cs index 82d7383..20a4716 100644 --- a/Breeze.Sharp/JNode.cs +++ b/Breeze.Sharp/JNode.cs @@ -1,4 +1,4 @@ - + using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; @@ -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;