From a015a8846157e699f196dee1bff5118f02588b13 Mon Sep 17 00:00:00 2001 From: "adis.kovacevic" Date: Tue, 21 Feb 2017 11:53:10 -0600 Subject: [PATCH] fixed DateTimeOffset mismatch --- ResponsivePath.Logging/Logging/SqlLogRecorder.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ResponsivePath.Logging/Logging/SqlLogRecorder.cs b/ResponsivePath.Logging/Logging/SqlLogRecorder.cs index f099d0f..f064315 100644 --- a/ResponsivePath.Logging/Logging/SqlLogRecorder.cs +++ b/ResponsivePath.Logging/Logging/SqlLogRecorder.cs @@ -76,7 +76,7 @@ async Task ILogRecorder.Save(LogEntry logEntry) using (var connection = providerFactory.CreateConnection(connectionString)) using (var cmdCreateEntry = SqlLogRecorder.cmdCreateEntry.BuildFrom(connection, new Dictionary { - { "@timestamp", logEntry.Timestamp }, + { "@timestamp", logEntry.Timestamp.DateTime }, { "@severity", logEntry.Severity.ToString("g") }, { "@message", logEntry.Message ?? (object)DBNull.Value }, { "@exception", JsonEncode(logEntry.Exception) ?? (object)DBNull.Value },