Fix: #14870 - Now Zip files display correct date and time

Fixes #14870

Signed-off-by: William Desportes <williamdes@wdes.fr>
This commit is contained in:
William Desportes 2019-03-02 20:16:06 +01:00
commit ccbc25dca9
No known key found for this signature in database
GPG Key ID: 90A0EF1B8251A889

View File

@ -198,8 +198,8 @@ class ZipExtension
foreach ($data as $table => $dump) {
$temp_name = str_replace('\\', '/', $table);
/* Convert Unix timestamp to DOS timestamp */
$timearray = ($time == 0) ? getdate() : getdate($time);
/* Get Local Time */
$timearray = getdate();
if ($timearray['year'] < 1980) {
$timearray['year'] = 1980;