From 4d6aacd4087db30eb50e3e2f7889f2e85aec45ef Mon Sep 17 00:00:00 2001 From: grandeljay Date: Wed, 9 Nov 2022 14:12:23 +0100 Subject: [PATCH] Fix not being able to migrate --- index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.php b/index.php index 03076200..5b4eee8b 100644 --- a/index.php +++ b/index.php @@ -104,7 +104,7 @@ if (isset($_COOKIE[COOKIE_PERSISTENT]) && $database) { $_SESSION['user'] = new User(); foreach ($sessions as $session) { - $expires = strtotime($session['expires'] ?? time() + 1); + $expires = strtotime($session['expires'] ?? date('Y-m-d H:i:s', time() + 1)); if (time() < $expires) { $_SESSION['user'] = User::getFromID($session['user']);