Use "utcNow"

This commit is contained in:
Michael 2022-11-30 22:36:58 +00:00
parent f905220923
commit ed1a879b7b

View file

@ -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);