diff --git a/src/Glimpse.Common/Internal/Serialization/TimeSpanConverter.cs b/src/Glimpse.Common/Internal/Serialization/TimeSpanConverter.cs index a9bf7288..f4c2c206 100644 --- a/src/Glimpse.Common/Internal/Serialization/TimeSpanConverter.cs +++ b/src/Glimpse.Common/Internal/Serialization/TimeSpanConverter.cs @@ -1,4 +1,5 @@ using System; +using System.Globalization; using Newtonsoft.Json; namespace Glimpse.Internal @@ -15,7 +16,7 @@ public override void WriteJson(JsonWriter writer, object value, JsonSerializer s result = Math.Round(convertedNullable.Value.TotalMilliseconds, 2); } - writer.WriteRawValue(result.ToString()); + writer.WriteRawValue(result.ToString(CultureInfo.InvariantCulture)); } public override object ReadJson(JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer)