Skip to content

Commit

Permalink
Convert a DateTime to a string representation with millisecond accura…
Browse files Browse the repository at this point in the history
…cy (#2945)
  • Loading branch information
SteveBush authored Dec 12, 2023
1 parent 8eadfe9 commit 406c280
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Paramore.Brighter.Outbox.Sqlite/SqliteOutbox.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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
{
Expand Down

0 comments on commit 406c280

Please sign in to comment.