Ensure file date formats are consistent

This commit is contained in:
Matt Nadareski
2024-12-07 23:17:29 -05:00
parent 5886632d62
commit 462ee6d6ab
3 changed files with 4 additions and 4 deletions

View File

@@ -218,7 +218,7 @@ namespace SabreTools.FileTypes.Archives
// Fill in common details and add to the list
rarEntryRom.Filename = entry.Key;
rarEntryRom.Parent = gamename;
rarEntryRom.Date = entry.LastModifiedTime?.ToString("yyyy/MM/dd hh:mm:ss");
rarEntryRom.Date = entry.LastModifiedTime?.ToString("yyyy/MM/dd HH:mm:ss");
found.Add(rarEntryRom);
}

View File

@@ -211,7 +211,7 @@ namespace SabreTools.FileTypes.Archives
// Fill in common details and add to the list
tarEntryRom.Filename = entry.Key;
tarEntryRom.Parent = gamename;
tarEntryRom.Date = entry.LastModifiedTime?.ToString("yyyy/MM/dd hh:mm:ss");
tarEntryRom.Date = entry.LastModifiedTime?.ToString("yyyy/MM/dd HH:mm:ss");
found.Add(tarEntryRom);
}

View File

@@ -372,7 +372,7 @@ namespace SabreTools.FileTypes.Archives
// Fill in common details and add to the list
zipEntryRom.Filename = localFile.Filename;
zipEntryRom.Parent = gamename;
zipEntryRom.Date = localFile.LastModified.ToString("yyyy/MM/dd hh:mm:ss");
zipEntryRom.Date = localFile.LastModified.ToString("yyyy/MM/dd HH:mm:ss");
found.Add(zipEntryRom);
}
@@ -429,7 +429,7 @@ namespace SabreTools.FileTypes.Archives
// Fill in common details and add to the list
zipEntryRom.Filename = localFile.FullName;
zipEntryRom.Parent = gamename;
zipEntryRom.Date = localFile.LastWriteTime.ToString("yyyy/MM/dd hh:mm:ss");
zipEntryRom.Date = localFile.LastWriteTime.ToString("yyyy/MM/dd HH:mm:ss");
found.Add(zipEntryRom);
}