aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/datetime.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/datetime.php b/include/datetime.php
index a5b388e76..ade202cad 100644
--- a/include/datetime.php
+++ b/include/datetime.php
@@ -178,6 +178,10 @@ function relative_date($posted_date) {
$abs = strtotime($localtime);
$etime = time() - $abs;
+ if ($abs==False) {
+ return t('never');
+ }
+
if ($etime < 1) {
return t('less than a second ago');
}