Skip to content

Commit

Permalink
Merge pull request #44 from rotdrop/bugfix/fix-alchemy-zippy-mtime
Browse files Browse the repository at this point in the history
Alchemy\Zippy\Archive\Member::getLastModifiedDate() returns DateTime,…
  • Loading branch information
wapmorgan authored Sep 6, 2024
2 parents 30debf4 + 3b92dcd commit d123ac5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Drivers/AlchemyZippy.php
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ protected function getMember($fileName)
public function getFileData($fileName)
{
$member = $this->getMember($fileName);
return new ArchiveEntry($member->getLocation(), $member->getSize(), $member->getSize(), strtotime($member->getLastModifiedDate()), true);
return new ArchiveEntry($member->getLocation(), $member->getSize(), $member->getSize(), $member->getLastModifiedDate()->getTimestamp(), true);
}

/**
Expand Down

0 comments on commit d123ac5

Please sign in to comment.