Compare with the utc value

This commit is contained in:
Michael 2024-03-05 14:24:40 +00:00
parent 72e045e744
commit ba07172a65
1 changed files with 1 additions and 1 deletions

View 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;
}