diff --git a/libraries/zip.lib.php b/libraries/zip.lib.php index c6ac6e509..a8bcb98d0 100644 --- a/libraries/zip.lib.php +++ b/libraries/zip.lib.php @@ -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]