Skip to content

Commit

Permalink
fix date for screenhots at setScreenShotsList method
Browse files Browse the repository at this point in the history
  • Loading branch information
RossKvit committed May 8, 2020
1 parent 10710c2 commit 2e56c60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/API2Client/Setters/TemplateFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ private function setScreenShotsList (Template $template, $data)
{
$screen = new Template\ScreenShot ();

$screen->setFilemtime ($this->createDateFromString ($this->getValue ('filemtime', $data, ''), 'Y-m-d H:i:s'), new \DateTime());
$screen->setFilemtime ($this->createDateFromString ($this->getValue ('filemtime', $screenshots_list, ''), 'Y-m-d H:i:s'), new \DateTime());
$screen->setUrl ($this->getValue ('uri', $screenshots_list, ''));
$screen->setMainPreview ($this->getValue ('main_preview', $screenshots_list, null) !== null);
$screen->setSmallPreview ($this->getValue ('small_preview', $screenshots_list, null) !== null);
Expand Down

0 comments on commit 2e56c60

Please sign in to comment.