Skip to content

Commit

Permalink
Set DateFormatHandling.IsoDateFormat for serializer. Fixes #351 (#353)
Browse files Browse the repository at this point in the history
  • Loading branch information
olsh committed Feb 7, 2020
1 parent b150d25 commit 7fe5221
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Sentry/Internal/JsonSerializer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ internal static class JsonSerializer
NullValueHandling = NullValueHandling.Ignore,
ReferenceLoopHandling = ReferenceLoopHandling.Ignore,
Formatting = Formatting.None,
Converters = new[] { StringEnumConverter }
Converters = new[] { StringEnumConverter },
DateFormatHandling = DateFormatHandling.IsoDateFormat
};

public static string SerializeObject<T>(T @object) => JsonConvert.SerializeObject(@object, Settings);
Expand Down

0 comments on commit 7fe5221

Please sign in to comment.