diff options
Diffstat (limited to 'app')
-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 { |