The branch, master has been updated via e49f0752f2a9f0864b15c81b237a9bb392519da6 (commit) from c675499cabd2e1779fadf62eb4fa43babf9ad8b4 (commit)
- Log ----------------------------------------------------------------- commit e49f0752f2a9f0864b15c81b237a9bb392519da6 Author: Brian Carcich drbitboy@users.sourceforge.net Date: Tue Apr 5 09:20:41 2011 +0200
Minor fix for rare occurrence: zipping files with dates <1981
-----------------------------------------------------------------------
Summary of changes: libraries/zip.lib.php | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/libraries/zip.lib.php b/libraries/zip.lib.php index c6ac6e5..a8bcb98 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]
hooks/post-receive