mirror of
https://github.com/friendica/friendica
synced 2025-01-03 14:42:18 +00:00
Compare with the utc value
This commit is contained in:
parent
72e045e744
commit
ba07172a65
1 changed files with 1 additions and 1 deletions
|
@ -833,7 +833,7 @@ class User
|
||||||
public static function updateLastActivity(array $user, bool $refresh_login)
|
public static function updateLastActivity(array $user, bool $refresh_login)
|
||||||
{
|
{
|
||||||
$current_day = DateTimeFormat::utcNow('Y-m-d');
|
$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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue