From 593774b613937652e9cb245cc064f7dc50ecdffe Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Fri, 2 Feb 2018 14:34:41 -0500 Subject: [PATCH] Update moved method Item::performLike() with DateTypeFormat - Update use list --- src/Model/Item.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Model/Item.php b/src/Model/Item.php index 7ba6a42e9c..d83546e340 100644 --- a/src/Model/Item.php +++ b/src/Model/Item.php @@ -23,7 +23,6 @@ use Friendica\Object\Image; use Friendica\Protocol\Diaspora; use Friendica\Protocol\OStatus; use Friendica\Util\DateTimeFormat; -use Friendica\Util\Temporal; use dba; use Text_LanguageDetect; @@ -1776,7 +1775,7 @@ class Item extends BaseObject $like_item = $existing_like[0]; // Already voted, undo it - $fields = ['deleted' => true, 'unseen' => true, 'changed' => datetime_convert()]; + $fields = ['deleted' => true, 'unseen' => true, 'changed' => DateTimeFormat::utcNow()]; dba::update('item', $fields, ['id' => $like_item['id']]); // Clean up the Diaspora signatures for this like -- 2.39.5