From b2e873ba7bc0c31b1d7fc1c0e96d347c93bebc5f Mon Sep 17 00:00:00 2001 From: Daniel Klabbers Date: Thu, 19 Jul 2018 09:15:59 +0200 Subject: [PATCH] undo carbon change as proposed in review --- src/Http/CookieFactory.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Http/CookieFactory.php b/src/Http/CookieFactory.php index f8ebd70e5..0ddb3de4c 100644 --- a/src/Http/CookieFactory.php +++ b/src/Http/CookieFactory.php @@ -11,7 +11,6 @@ namespace Flarum\Http; -use Carbon\Carbon; use Dflydev\FigCookies\SetCookie; use Flarum\Foundation\Application; @@ -80,7 +79,7 @@ class CookieFactory if ($maxAge) { $cookie = $cookie ->withMaxAge($maxAge) - ->withExpires(Carbon::now()->timestamp + $maxAge); + ->withExpires(time() + $maxAge); } if ($this->domain != null) {