mirror of
https://github.com/friendica/friendica
synced 2024-11-18 15:03:41 +00:00
Use "utcNow"
This commit is contained in:
parent
f905220923
commit
ed1a879b7b
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue