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 },