diff --git a/src/Paramore.Brighter.Outbox.Sqlite/SqliteOutbox.cs b/src/Paramore.Brighter.Outbox.Sqlite/SqliteOutbox.cs index 1fe9c232d6..07fa25864d 100644 --- a/src/Paramore.Brighter.Outbox.Sqlite/SqliteOutbox.cs +++ b/src/Paramore.Brighter.Outbox.Sqlite/SqliteOutbox.cs @@ -27,6 +27,7 @@ THE SOFTWARE. */ using System.Collections.Generic; using System.Data; using System.Data.Common; +using System.Globalization; using System.Text.Json; using System.Threading; using System.Threading.Tasks; @@ -258,7 +259,7 @@ protected override IDbDataParameter[] InitAddDbParameters(Message message, int? { ParameterName = $"@{prefix}Timestamp", SqliteType = SqliteType.Text, - Value = message.Header.TimeStamp.ToString("s") + Value = message.Header.TimeStamp.ToString("yyyy-MM-dd HH:mm:ss.fff", CultureInfo.InvariantCulture) }, new SqliteParameter {