Imported Upstream version 4.4.2.4

Former-commit-id: 92904c9c5915c37244316e42ba99e7b934ed7ee2
This commit is contained in:
Xamarin Public Jenkins (auto-signing)
2016-07-21 09:40:10 +00:00
parent 589d484eee
commit 0b4a830db1
343 changed files with 9849 additions and 688 deletions

View File

@ -16,6 +16,13 @@ namespace SharpCompress.Common.Zip
this.filePart = filePart;
lastModifiedTime = Utility.DosDateToDateTime(filePart.Header.LastModifiedDate,
filePart.Header.LastModifiedTime);
if (lastModifiedTime == default(DateTime))
{
// On .NET on Windows, for zip entries that don't have a last write time,
// the return value for ZipArchiveEntry.LastWriteTime is:
// 1/1/1980 12:00:00 AM, Ticks=624511296000000000
lastModifiedTime = new DateTime(624511296000000000);
}
}
}