Compare with the utc value
This commit is contained in:
parent
72e045e744
commit
ba07172a65
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user