}
$r = q("UPDATE `item` SET `deleted` = 1, `unseen` = 1, `changed` = '%s' WHERE `verb` = '%s' AND `uid` = %d AND `contact-id` = %d AND `thr-parent` = '%s'",
- dbesc(Temporal::convert()),
+ dbesc(Temporal::utcNow()),
dbesc(ACTIVITY_LIKE),
intval($uid),
intval($contactid),
`location`, `about`, `writable`, `blocked`, `readonly`, `pending` )
VALUES (%d, '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', %d, %d, '%s', '%s', %d, 0, 0, 0)",
intval($uid),
- dbesc(Temporal::convert()),
+ dbesc(Temporal::utcNow()),
dbesc($contact->url),
dbesc(normalise_link($contact->url)),
dbesc(str_replace("acct:", "", $contact->id)),
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'];
$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]";