mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-07-11 19:08:49 +00:00
Add Temporal::utc() shorthand to Temporal::convert()
This commit is contained in:
parent
e4f32f8ac8
commit
cbc89d147d
5 changed files with 16 additions and 16 deletions
|
@ -1211,11 +1211,11 @@ function pumpio_dopost(&$a, $client, $uid, $self, $post, $own_id, $threadcomplet
|
|||
if ($post->object->displayName != "")
|
||||
$postarray['title'] = $post->object->displayName;
|
||||
|
||||
$postarray['created'] = Temporal::convert($post->published);
|
||||
$postarray['created'] = Temporal::utc($post->published);
|
||||
if (isset($post->updated))
|
||||
$postarray['edited'] = Temporal::convert($post->updated);
|
||||
$postarray['edited'] = Temporal::utc($post->updated);
|
||||
elseif (isset($post->received))
|
||||
$postarray['edited'] = Temporal::convert($post->received);
|
||||
$postarray['edited'] = Temporal::utc($post->received);
|
||||
else
|
||||
$postarray['edited'] = $postarray['created'];
|
||||
|
||||
|
@ -1230,7 +1230,7 @@ function pumpio_dopost(&$a, $client, $uid, $self, $post, $own_id, $threadcomplet
|
|||
|
||||
$postarray['body'] = share_header($share_author, $post->object->author->url,
|
||||
$post->object->author->image->url, "",
|
||||
Temporal::convert($post->object->created),
|
||||
Temporal::utc($post->object->created),
|
||||
$post->links->self->href).
|
||||
$postarray['body']."[/share]";
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue