From 66d32f2efb2784e8c8068ef124850a47e83f9dc9 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 --- framework/core/src/Http/CookieFactory.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/framework/core/src/Http/CookieFactory.php b/framework/core/src/Http/CookieFactory.php index f8ebd70e5..0ddb3de4c 100644 --- a/framework/core/src/Http/CookieFactory.php +++ b/framework/core/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) {