]> git.mxchange.org Git - friendica.git/commitdiff
Use "utcNow"
authorMichael <heluecht@pirati.ca>
Wed, 30 Nov 2022 22:36:58 +0000 (22:36 +0000)
committerMichael <heluecht@pirati.ca>
Wed, 30 Nov 2022 22:36:58 +0000 (22:36 +0000)
src/Model/User.php

index 6d7efafb18786762c415daa763f9d9e55a97e369..eb8d22c58cdbda518f9e4a87e792d05aeaca9973 100644 (file)
@@ -674,7 +674,7 @@ class User
        public static function updateLastActivity(int $uid)
        {
                $user = User::getById($uid, ['last-activity']);
-               $current_day = date('Y-m-d');
+               $current_day = DateTimeFormat::utcNow('Y-m-d');
 
                if ($user['last-activity'] != $current_day) {
                        User::update(['last-activity' => $current_day], $uid);