undo carbon change as proposed in review

This commit is contained in:
Daniel Klabbers 2018-07-19 09:15:59 +02:00
parent 2c15597ec9
commit b2e873ba7b

View File

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