]> git.mxchange.org Git - friendica.git/blobdiff - src/Security/Authentication.php
Remove most calls to date_default_timezone_* calls
[friendica.git] / src / Security / Authentication.php
index 074cfc2bae0c733013b59440241da4bc836978fc..c0dc1e9aa7402144a632b2a65a8c22cc062fd531 100644 (file)
@@ -305,7 +305,6 @@ class Authentication
                $this->session->set('new_member', time() < ($member_since + (60 * 60 * 24 * 14)));
 
                if (strlen($user_record['timezone'])) {
-                       date_default_timezone_set($user_record['timezone']);
                        $a->setTimeZone($user_record['timezone']);
                }
 
@@ -352,8 +351,8 @@ class Authentication
                        }
                }
 
-               $a->setUserId($user_record['uid']);
-               $a->setNickname($user_record['nickname']);
+               $a->setLoggedInUserId($user_record['uid']);
+               $a->setLoggedInUserNickname($user_record['nickname']);
 
                if ($login_initial) {
                        Hook::callAll('logged_in', $user_record);