Skip to content

Commit

Permalink
Use ISO 8601 date format in CSV
Browse files Browse the repository at this point in the history
  • Loading branch information
Tyrrrz authored and cooljeanius committed Nov 8, 2023
1 parent bf8ed97 commit 178e2df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion DiscordChatExporter.Core/Exporting/CsvMessageWriter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ public CsvMessageWriter(Stream stream, ExportContext context)
await _writer.WriteAsync(',');

// Message timestamp
await _writer.WriteAsync(CsvEncode(Context.FormatDate(message.Timestamp)));
await _writer.WriteAsync(CsvEncode(Context.FormatDate(message.Timestamp, "o")));
await _writer.WriteAsync(',');

// Message content
Expand Down

0 comments on commit 178e2df

Please sign in to comment.