mirror of
https://github.com/flarum/core.git
synced 2025-08-02 14:37:49 +02:00
undo carbon change as proposed in review
This commit is contained in:
@@ -11,7 +11,6 @@
|
|||||||
|
|
||||||
namespace Flarum\Http;
|
namespace Flarum\Http;
|
||||||
|
|
||||||
use Carbon\Carbon;
|
|
||||||
use Dflydev\FigCookies\SetCookie;
|
use Dflydev\FigCookies\SetCookie;
|
||||||
use Flarum\Foundation\Application;
|
use Flarum\Foundation\Application;
|
||||||
|
|
||||||
@@ -80,7 +79,7 @@ class CookieFactory
|
|||||||
if ($maxAge) {
|
if ($maxAge) {
|
||||||
$cookie = $cookie
|
$cookie = $cookie
|
||||||
->withMaxAge($maxAge)
|
->withMaxAge($maxAge)
|
||||||
->withExpires(Carbon::now()->timestamp + $maxAge);
|
->withExpires(time() + $maxAge);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($this->domain != null) {
|
if ($this->domain != null) {
|
||||||
|
Reference in New Issue
Block a user