if (function_exists("share_header"))
$post .= share_header($item->object->actor->displayName, $item->object->actor->url,
$item->object->actor->image->url, "",
- Temporal::convert($item->object->published),$item->object->url);
+ Temporal::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='".Temporal::convert($item->object->published).
+ "' posted='".Temporal::utc($item->object->published).
"' link='".$item->object->url."']";
$post .= fromgplus_html2bbcode($item->object->content);
return;
$r = q("UPDATE user set account_expires_on = '%s', expire = %d where uid = %d",
- dbesc(Temporal::convert('now +' . $days . ' days')),
+ dbesc(Temporal::utc('now +' . $days . ' days')),
intval($days_posts),
intval($uid)
);
if(count($r)) {
foreach($r as $rr)
q("update user set account_expires_on = '%s' where uid = %d",
- dbesc(Temporal::convert('now +' . '6 days')),
+ dbesc(Temporal::utc('now +' . '6 days')),
intval($rr['uid'])
);
}
if(count($r)) {
foreach($r as $rr)
q("update user set account_expires_on = '%s' where uid = %d",
- dbesc(Temporal::convert('now +' . '6 days')),
+ dbesc(Temporal::utc('now +' . '6 days')),
intval($rr['uid'])
);
}
if(! $days)
return;
$r = q("UPDATE user set account_expires_on = '%s' where uid = %d and account_expires_on > '0000-00-00 00:00:00'",
- dbesc(Temporal::convert('now +' . $days . ' days')),
+ dbesc(Temporal::utc('now +' . $days . ' days')),
local_user()
);
}
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]";
} else {
// update profile photos once every two weeks as we have no notification of when they change.
//$update_photo = (($r[0]['avatar-date'] < Temporal::convert('now -2 days', '', '', )) ? true : false);
- $update_photo = ($r[0]['avatar-date'] < Temporal::convert('now -12 hours'));
+ $update_photo = ($r[0]['avatar-date'] < Temporal::utc('now -12 hours'));
// check that we have all the photos, this has been known to fail on occasion
if ((!$r[0]['photo']) || (!$r[0]['thumb']) || (!$r[0]['micro']) || ($update_photo)) {
$postarray['body'] = $converted["body"];
$postarray['tag'] = $converted["tags"];
- $postarray['created'] = Temporal::convert($content->created_at);
- $postarray['edited'] = Temporal::convert($content->created_at);
+ $postarray['created'] = Temporal::utc($content->created_at);
+ $postarray['edited'] = Temporal::utc($content->created_at);
if (is_string($content->place->name)) {
$postarray["location"] = $content->place->name;
} else {
// update profile photos once every two weeks as we have no notification of when they change.
//$update_photo = (($r[0]['avatar-date'] < Temporal::convert('now -2 days', '', '', )) ? true : false);
- $update_photo = ($r[0]['avatar-date'] < Temporal::convert('now -12 hours'));
+ $update_photo = ($r[0]['avatar-date'] < Temporal::utc('now -12 hours'));
// check that we have all the photos, this has been known to fail on occasion
if ((!$r[0]['photo']) || (!$r[0]['thumb']) || (!$r[0]['micro']) || ($update_photo)) {
$converted = twitter_expand_entities($a, $postarray['body'], $post, false, $picture);
$postarray['body'] = $converted["body"];
$postarray['tag'] = $converted["tags"];
- $postarray['created'] = Temporal::convert($post->created_at);
- $postarray['edited'] = Temporal::convert($post->created_at);
+ $postarray['created'] = Temporal::utc($post->created_at);
+ $postarray['edited'] = Temporal::utc($post->created_at);
$statustext = $converted["plain"];