Minor fix for rare occurrence: zipping files with dates <1981
This commit is contained in:

committed by
Michal Čihař

parent
c675499cab
commit
e49f0752f2
@@ -96,7 +96,7 @@ class zipfile
|
||||
{
|
||||
$name = str_replace('\\', '/', $name);
|
||||
|
||||
$dtime = dechex($this->unix2DosTime($time));
|
||||
$dtime = substr( "00000000" . dechex($this->unix2DosTime($time)), -8);
|
||||
$hexdtime = '\x' . $dtime[6] . $dtime[7]
|
||||
. '\x' . $dtime[4] . $dtime[5]
|
||||
. '\x' . $dtime[2] . $dtime[3]
|
||||
|
Reference in New Issue
Block a user