Skip to content
This repository has been archived by the owner on Feb 17, 2020. It is now read-only.

Commit

Permalink
Merge pull request #4 from rhrebecek/patch-1
Browse files Browse the repository at this point in the history
Update DeviceView.php
  • Loading branch information
akadlec committed Jun 29, 2015
2 parents 44d6a22 + 960a684 commit 4f002ec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/IPub/MobileDetect/Helpers/DeviceView.php
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ public function getMobileRedirectResponse($host, $statusCode)
*/
protected function createCookie($cookieValue)
{
$currentDate = new Nette\DateTime('+1 month');
$currentDate = new \DateTime('+1 month');

// Create cookie object
$cookie = new Cookie(self::COOKIE_KEY, $cookieValue, $currentDate->format('Y-m-d'));
Expand All @@ -326,4 +326,4 @@ protected function createCookie($cookieValue)
$cookie->isHttpOnly()
);
}
}
}

0 comments on commit 4f002ec

Please sign in to comment.