diff options
author | emkael <emkael@tlen.pl> | 2017-03-17 20:36:44 +0100 |
---|---|---|
committer | emkael <emkael@tlen.pl> | 2017-03-17 20:36:44 +0100 |
commit | ba5283736b47f513719b715631d3a1d3f86b6568 (patch) | |
tree | e0857ccec1c0c97ca5f9832b309b130426e84a09 /app/frontend/user/DbUser.php | |
parent | 9109b4018c1daa61c81cbde8182a4ce46fd8f909 (diff) |
* date() -> (new Date())->format()
Diffstat (limited to 'app/frontend/user/DbUser.php')
-rw-r--r-- | app/frontend/user/DbUser.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/frontend/user/DbUser.php b/app/frontend/user/DbUser.php index 55dcf05..b224120 100644 --- a/app/frontend/user/DbUser.php +++ b/app/frontend/user/DbUser.php @@ -52,7 +52,7 @@ class DbUser extends TDbUser { $dbPassword = $user ? $user->Password : ''; if (UserFacade::getInstance()->verifyPassword($password, $dbPassword) && $user) { - $user->LastLogin = date('Y-m-d H:i:s'); + $user->LastLogin = (new DateTime('UTC'))->format('Y-m-d H:i:s'); $user->save(); return TRUE; } else { |