mirror of
https://github.com/flarum/framework.git
synced 2025-02-21 12:16:40 +08:00
undo carbon change as proposed in review
This commit is contained in:
parent
c8a9e8425e
commit
66d32f2efb
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user