Installer: Fix invalid join time of admin user

Fixes #1664.
This commit is contained in:
Franz Liedke 2018-11-29 22:56:56 +01:00
parent 7705a2b7d7
commit 57f73c9638
No known key found for this signature in database
GPG Key ID: 9A0231A879B055F4

View File

@ -11,6 +11,7 @@
namespace Flarum\Install\Console; namespace Flarum\Install\Console;
use Carbon\Carbon;
use Exception; use Exception;
use Flarum\Console\AbstractCommand; use Flarum\Console\AbstractCommand;
use Flarum\Database\DatabaseMigrationRepository; use Flarum\Database\DatabaseMigrationRepository;
@ -294,7 +295,7 @@ class InstallCommand extends AbstractCommand
'username' => $admin['username'], 'username' => $admin['username'],
'email' => $admin['email'], 'email' => $admin['email'],
'password' => (new BcryptHasher)->make($admin['password']), 'password' => (new BcryptHasher)->make($admin['password']),
'joined_at' => time(), 'joined_at' => Carbon::now(),
'is_email_confirmed' => 1, 'is_email_confirmed' => 1,
]); ]);