From: Michael Date: Wed, 30 Nov 2022 22:36:58 +0000 (+0000) Subject: Use "utcNow" X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=ed1a879b7b4921b4a486b6544c0a3e808e45c456;p=friendica.git Use "utcNow" --- diff --git a/src/Model/User.php b/src/Model/User.php index 6d7efafb18..eb8d22c58c 100644 --- a/src/Model/User.php +++ b/src/Model/User.php @@ -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);