Skip to content

Commit

Permalink
Merge pull request #1058 from arodu/feature/fix_last_login
Browse files Browse the repository at this point in the history
fix: minor fix on last_login datetime format
flohdez authored Feb 5, 2024
2 parents f6876ba + 9994c60 commit 8effeb1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Controller/Component/LoginComponent.php
Original file line number Diff line number Diff line change
@@ -239,7 +239,7 @@ protected function updateLastLogin($user)
$now = \Cake\I18n\FrozenTime::now();
$user->set('last_login', $now);
$this->getController()->getUsersTable()->updateAll(
['last_login' => $now],
['last_login' => $now->format('Y-m-d H:i:s')],
['id' => $user->id]
);
}

0 comments on commit 8effeb1

Please sign in to comment.