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 | |
parent | 9109b4018c1daa61c81cbde8182a4ce46fd8f909 (diff) |
* date() -> (new Date())->format()
Diffstat (limited to 'app/frontend')
-rw-r--r-- | app/frontend/facades/UserFacade.php | 2 | ||||
-rw-r--r-- | app/frontend/user/DbUser.php | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/app/frontend/facades/UserFacade.php b/app/frontend/facades/UserFacade.php index 96f4923..5e04319 100644 --- a/app/frontend/facades/UserFacade.php +++ b/app/frontend/facades/UserFacade.php @@ -108,7 +108,7 @@ class UserFacade extends Facade { && ($user->ActivationHash === $hash); if ($activation) { $user->IsActive = TRUE; - $user->ActivationDate = date('Y-m-d H:i:s'); + $user->ActivationDate = (new DateTime('UTC'))->format('Y-m-d H:i:s'); $user->ActivationHash = NULL; $user->save(); return TRUE; 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 { |