From fbd5a66156643d52cdf82a109cc5b33bc3d35875 Mon Sep 17 00:00:00 2001 From: Florian Stinglmayr Date: Fri, 25 Nov 2022 17:36:41 +0100 Subject: [PATCH] fix ISO8601 parsing of datetime --- EDPlayerJournal/Entries/Entry.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/EDPlayerJournal/Entries/Entry.cs b/EDPlayerJournal/Entries/Entry.cs index 6ce35f4..800f0e1 100644 --- a/EDPlayerJournal/Entries/Entry.cs +++ b/EDPlayerJournal/Entries/Entry.cs @@ -102,7 +102,7 @@ public class Entry { this.datetime = json.GetValue("timestamp")?.ToString(); if (!string.IsNullOrEmpty(this.datetime)) { - this.timestamp = DateTime.Parse(this.datetime); + this.timestamp = DateTime.Parse(this.datetime, null, System.Globalization.DateTimeStyles.RoundtripKind); } }