File tree 1 file changed +1
-6
lines changed
src/ICSharpCode.SharpZipLib/Zip
1 file changed +1
-6
lines changed Original file line number Diff line number Diff line change @@ -1103,12 +1103,7 @@ private DateTime GetDateTime(ZipExtraData extraData)
1103
1103
1104
1104
// Check for Unix timestamp
1105
1105
ExtendedUnixData unixData = extraData . GetData < ExtendedUnixData > ( ) ;
1106
- if ( unixData != null &&
1107
- // Only apply modification time, but require all other values to be present
1108
- // This is done to match InfoZIP's behaviour
1109
- ( ( unixData . Include & ExtendedUnixData . Flags . ModificationTime ) != 0 ) &&
1110
- ( ( unixData . Include & ExtendedUnixData . Flags . AccessTime ) != 0 ) &&
1111
- ( ( unixData . Include & ExtendedUnixData . Flags . CreateTime ) != 0 ) )
1106
+ if ( unixData != null && unixData . Include . HasFlag ( ExtendedUnixData . Flags . ModificationTime ) )
1112
1107
return unixData . ModificationTime ;
1113
1108
1114
1109
// Fall back to DOS time
You can’t perform that action at this time.
0 commit comments