Add Temporal::utc() shorthand to Temporal::convert()

This commit is contained in:
Hypolite Petovan 2018-01-26 07:30:06 -05:00
parent e4f32f8ac8
commit cbc89d147d
5 changed files with 16 additions and 16 deletions

View file

@ -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]";