mirror of
https://github.com/Ne-Lexa/php-zip.git
synced 2025-10-13 06:14:37 +02:00
fix incorrect time in archive
This commit is contained in:
@@ -461,6 +461,9 @@ class ZipFile implements \Countable, \ArrayAccess, \Iterator
|
||||
$localName = basename($filename);
|
||||
}
|
||||
$this->addFromStream($handle, $localName, $compressionMethod);
|
||||
$this->centralDirectory
|
||||
->getModifiedEntry($localName)
|
||||
->setTime(filemtime($filename));
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user