Skip to content

Commit

Permalink
fix: last login format to save
Browse files Browse the repository at this point in the history
  • Loading branch information
arodu committed Mar 12, 2024
1 parent 3678457 commit 39b5a44
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
Expand Up @@ -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]
);
}
Expand Down

0 comments on commit 39b5a44

Please sign in to comment.