Minor fix for rare occurrence: zipping files with dates <1981

This commit is contained in:
Brian Carcich
2011-04-05 09:20:41 +02:00
committed by Michal Čihař
parent c675499cab
commit e49f0752f2

View File

@@ -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]