Skip to content

Commit

Permalink
Installer: Fix invalid join time of admin user
Browse files Browse the repository at this point in the history
Fixes #1664.
  • Loading branch information
franzliedke committed Nov 29, 2018
1 parent 7705a2b commit 57f73c9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Install/Console/InstallCommand.php
Expand Up @@ -11,6 +11,7 @@

namespace Flarum\Install\Console;

use Carbon\Carbon;
use Exception;
use Flarum\Console\AbstractCommand;
use Flarum\Database\DatabaseMigrationRepository;
Expand Down Expand Up @@ -294,7 +295,7 @@ protected function createAdminUser()
'username' => $admin['username'],
'email' => $admin['email'],
'password' => (new BcryptHasher)->make($admin['password']),
'joined_at' => time(),
'joined_at' => Carbon::now(),
'is_email_confirmed' => 1,
]);

Expand Down

0 comments on commit 57f73c9

Please sign in to comment.