aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-06-20 01:38:26 -0700
committerFriendika <info@friendika.com>2011-06-20 01:38:26 -0700
commitb86ae9de7f8982f22c6ab086bda8fa82977d3ae7 (patch)
tree691a88cd199ead867d0ad269754c28ffce5de9a2
parentf3292e68a25c03cbd92952f5670f355b8784c877 (diff)
downloadvolse-hubzilla-b86ae9de7f8982f22c6ab086bda8fa82977d3ae7.tar.gz
volse-hubzilla-b86ae9de7f8982f22c6ab086bda8fa82977d3ae7.tar.bz2
volse-hubzilla-b86ae9de7f8982f22c6ab086bda8fa82977d3ae7.zip
use atom_time on atom entries
-rw-r--r--include/api.php2
-rw-r--r--view/api_timeline_atom.tpl4
2 files changed, 4 insertions, 2 deletions
diff --git a/include/api.php b/include/api.php
index fbcfffef8..43a77bcc7 100644
--- a/include/api.php
+++ b/include/api.php
@@ -485,6 +485,8 @@
foreach($r as $item) {
$status = array(
'created_at'=> api_date($item['created']),
+ 'published' => datetime_convert('UTC','UTC',$item['created'],ATOM_TIME),
+ 'updated' => datetime_convert('UTC','UTC',$item['edited'],ATOM_TIME),
'id' => $item['id'],
'text' => strip_tags(bbcode($item['body'])),
'html' => bbcode($item['body']),
diff --git a/view/api_timeline_atom.tpl b/view/api_timeline_atom.tpl
index 069ff7651..bc677d237 100644
--- a/view/api_timeline_atom.tpl
+++ b/view/api_timeline_atom.tpl
@@ -15,8 +15,8 @@
<content type="html">$status.html</content>
<link rel="alternate" type="text/html" href="$status.url"/>
<activity:verb>$status.verb</activity:verb>
- <published>$status.created_at</published>
- <updated>$status.created_at</updated>
+ <published>$status.published</published>
+ <updated>$status.updated</updated>
<link rel="ostatus:conversation" href="$status.url"/>
<!--