From 2b8a1c34f36caa73502a4dd498f0f234fb2a1cff Mon Sep 17 00:00:00 2001 From: Natalia Portillo Date: Mon, 21 Sep 2020 00:49:41 +0100 Subject: [PATCH] Ensure DAT dates use backward slash always. --- RomRepoMgr.Core/Workers/DatImporter.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/RomRepoMgr.Core/Workers/DatImporter.cs b/RomRepoMgr.Core/Workers/DatImporter.cs index ae7f352..f5d0b32 100644 --- a/RomRepoMgr.Core/Workers/DatImporter.cs +++ b/RomRepoMgr.Core/Workers/DatImporter.cs @@ -749,6 +749,8 @@ namespace RomRepoMgr.Core.Workers if(!string.IsNullOrEmpty(rom.Date)) { + rom.Date = rom.Date.Replace("/", "\\"); + if(DateTime.TryParseExact(rom.Date, @"yyyy\\M\\d H:mm", CultureInfo.InvariantCulture, DateTimeStyles.AssumeUniversal, out DateTime date)) fileModificationDate = date;