From 5cb3143c0448834f7bd164320bec15ef2a030c52 Mon Sep 17 00:00:00 2001 From: redmatrix Date: Sun, 10 Apr 2016 21:30:35 -0700 Subject: issue #331 use timeago.js for reshared publish date instead of relative_date() which does not play well with other networks. --- include/bbcode.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'include') 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 = '' . datetime_convert('UTC', date_default_timezone_get(), $posted, 'r') . ''; $headline = '
'; -- cgit v1.2.3