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) {