mirror of
https://github.com/claunia/romrepomgr.git
synced 2025-12-16 19:24:51 +00:00
Ensure DAT dates use backward slash always.
This commit is contained in:
@@ -749,6 +749,8 @@ namespace RomRepoMgr.Core.Workers
|
|||||||
|
|
||||||
if(!string.IsNullOrEmpty(rom.Date))
|
if(!string.IsNullOrEmpty(rom.Date))
|
||||||
{
|
{
|
||||||
|
rom.Date = rom.Date.Replace("/", "\\");
|
||||||
|
|
||||||
if(DateTime.TryParseExact(rom.Date, @"yyyy\\M\\d H:mm", CultureInfo.InvariantCulture,
|
if(DateTime.TryParseExact(rom.Date, @"yyyy\\M\\d H:mm", CultureInfo.InvariantCulture,
|
||||||
DateTimeStyles.AssumeUniversal, out DateTime date))
|
DateTimeStyles.AssumeUniversal, out DateTime date))
|
||||||
fileModificationDate = date;
|
fileModificationDate = date;
|
||||||
|
|||||||
Reference in New Issue
Block a user