mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
Don't throw on getting invalid datetime
This commit is contained in:
@@ -1128,6 +1128,8 @@ namespace Compress.ZipFile
|
|||||||
public DateTime DateTime
|
public DateTime DateTime
|
||||||
{
|
{
|
||||||
get
|
get
|
||||||
|
{
|
||||||
|
try
|
||||||
{
|
{
|
||||||
if (_lastModFileDateTime == null)
|
if (_lastModFileDateTime == null)
|
||||||
{
|
{
|
||||||
@@ -1146,6 +1148,11 @@ namespace Compress.ZipFile
|
|||||||
return SabreTools.Library.Tools.Utilities.ConvertMsDosTimeFormatToDateTime(_lastModFileDateTime.Value);
|
return SabreTools.Library.Tools.Utilities.ConvertMsDosTimeFormatToDateTime(_lastModFileDateTime.Value);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
catch
|
||||||
|
{
|
||||||
|
return DateTime.MinValue;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public ulong LocalFilePos
|
public ulong LocalFilePos
|
||||||
|
|||||||
Reference in New Issue
Block a user