X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=fromgplus%2Ffromgplus.php;h=b8d9511a52f48c7628dde6c8f33dec05f8b5d4f2;hb=HEAD;hp=0a2b680227a05007af5773838abe1b0fb1cefbd5;hpb=f96a41a4115c0ba855ef4efc7301045d67c8785c;p=friendica-addons.git diff --git a/fromgplus/fromgplus.php b/fromgplus/fromgplus.php index 0a2b6802..b8d9511a 100644 --- a/fromgplus/fromgplus.php +++ b/fromgplus/fromgplus.php @@ -14,6 +14,7 @@ use Friendica\Core\Config; use Friendica\Core\L10n; use Friendica\Core\PConfig; use Friendica\Object\Image; +use Friendica\Util\DateTimeFormat; use Friendica\Util\Network; require_once 'mod/share.php'; @@ -519,12 +520,12 @@ function fromgplus_fetch($a, $uid) { if (function_exists("share_header")) $post .= share_header($item->object->actor->displayName, $item->object->actor->url, $item->object->actor->image->url, "", - datetime_convert('UTC','UTC',$item->object->published),$item->object->url); + DateTimeFormat::utc($item->object->published),$item->object->url); else $post .= "[share author='".str_replace("'", "'",$item->object->actor->displayName). "' profile='".$item->object->actor->url. "' avatar='".$item->object->actor->image->url. - "' posted='".datetime_convert('UTC','UTC',$item->object->published). + "' posted='".DateTimeFormat::utc($item->object->published). "' link='".$item->object->url."']"; $post .= fromgplus_html2bbcode($item->object->content);