aboutsummaryrefslogtreecommitdiffstats
path: root/include/bbcode.php
diff options
context:
space:
mode:
authorredmatrix <git@macgirvin.com>2016-04-10 21:30:35 -0700
committerredmatrix <git@macgirvin.com>2016-04-10 21:30:35 -0700
commit5cb3143c0448834f7bd164320bec15ef2a030c52 (patch)
tree406b3f23134afbaa81bed4548257dc71847124d8 /include/bbcode.php
parentd1a2aecfa05927b79350500b7c0f9d9b978afbeb (diff)
downloadvolse-hubzilla-5cb3143c0448834f7bd164320bec15ef2a030c52.tar.gz
volse-hubzilla-5cb3143c0448834f7bd164320bec15ef2a030c52.tar.bz2
volse-hubzilla-5cb3143c0448834f7bd164320bec15ef2a030c52.zip
issue #331 use timeago.js for reshared publish date instead of relative_date() which does not play well with other networks.
Diffstat (limited to 'include/bbcode.php')
-rw-r--r--include/bbcode.php4
1 files changed, 1 insertions, 3 deletions
diff --git a/include/bbcode.php b/include/bbcode.php
index c2ff5d7c8..78a2759c1 100644
--- a/include/bbcode.php
+++ b/include/bbcode.php
@@ -243,9 +243,7 @@ function bb_ShareAttributes($match) {
if ($matches[1] != "")
$message_id = $matches[1];
-
- /** @FIXME - this should really be a wall-item-ago so it will get updated on the client */
- $reldate = (($posted) ? relative_date($posted) : '');
+ $reldate = '<span class="autotime" title="' . datetime_convert('UTC', date_default_timezone_get(), $posted, 'c') . '" >' . datetime_convert('UTC', date_default_timezone_get(), $posted, 'r') . '</span>';
$headline = '<div class="shared_container"> <div class="shared_header">';