mirror of
https://github.com/doublecmd/doublecmd.git
synced 2026-06-28 10:02:14 +00:00
FIX: Zip - use GMT time if available when extract
This commit is contained in:
parent
fe7d3d64d7
commit
d2b2920c29
1 changed files with 9 additions and 0 deletions
|
|
@ -413,6 +413,7 @@ type
|
|||
function GetLastModFileTime : Word; override;
|
||||
function GetNativeFileAttributes : LongInt; override;
|
||||
function GetNativeLastModFileTime: Longint; override;
|
||||
function GetLastModTimeAsDateTime: TDateTime; override;
|
||||
procedure SetCompressedSize( const Value : Int64 ); override;
|
||||
procedure SetCRC32( const Value : Longint ); override;
|
||||
procedure SetExternalFileAttributes( Value : LongWord ); override;
|
||||
|
|
@ -1455,6 +1456,14 @@ begin
|
|||
{$ENDIF}
|
||||
end;
|
||||
{ -------------------------------------------------------------------------- }
|
||||
function TAbZipItem.GetLastModTimeAsDateTime: TDateTime;
|
||||
begin
|
||||
if (FDateTime <> 0) then
|
||||
Result := FDateTime
|
||||
else
|
||||
Result := AbDosFileDateToDateTime(FItemInfo.LastModFileDate, FItemInfo.LastModFileTime);
|
||||
end;
|
||||
{ -------------------------------------------------------------------------- }
|
||||
function TAbZipItem.GetShannonFanoTreeCount : Byte;
|
||||
begin
|
||||
Result := FItemInfo.ShannonFanoTreeCount;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue