]> git.mxchange.org Git - friendica.git/commitdiff
Compare with the utc value
authorMichael <heluecht@pirati.ca>
Tue, 5 Mar 2024 14:24:40 +0000 (14:24 +0000)
committerMichael <heluecht@pirati.ca>
Tue, 5 Mar 2024 14:24:40 +0000 (14:24 +0000)
src/Model/User.php

index 04c6943452f0c402e4f5b6f405ba2f16ea075583..59ac7b46b5888248da3d5769e2d7a8039e48cb86 100644 (file)
@@ -833,7 +833,7 @@ class User
        public static function updateLastActivity(array $user, bool $refresh_login)
        {
                $current_day = DateTimeFormat::utcNow('Y-m-d');
-               if (($user['last-activity'] == $current_day) && (!$refresh_login || DateTimeFormat::utc($user['login_date'], 'z-H') == date('z-H'))) {
+               if (($user['last-activity'] == $current_day) && (!$refresh_login || DateTimeFormat::utc($user['login_date'], 'z-H') == DateTimeFormat::utcNow('z-H'))) {
                        return;
                }