Skip to content

Commit

Permalink
read zip timestamp in localtime
Browse files Browse the repository at this point in the history
  • Loading branch information
pmqs committed Apr 24, 2022
1 parent 3497645 commit 0c838f4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/IO/Uncompress/Unzip.pm
Original file line number Diff line number Diff line change
Expand Up @@ -813,9 +813,10 @@ sub _dosToUnixTime
my $sec = ( ( $dt << 1 ) & 0x3e );

use Time::Local ;
my $time_t = Time::Local::timegm( $sec, $min, $hour, $mday, $mon, $year);
my $time_t = Time::Local::timelocal( $sec, $min, $hour, $mday, $mon, $year);
return 0 if ! defined $time_t;
return $time_t;

}

#sub scanCentralDirectory
Expand Down

0 comments on commit 0c838f4

Please sign in to comment.