aboutsummaryrefslogtreecommitdiffstats
path: root/include/datetime.php
diff options
context:
space:
mode:
authorFabio Comuni <fabrix.xm@gmail.com>2011-06-29 12:05:09 +0200
committerFabio Comuni <fabrix.xm@gmail.com>2011-06-29 12:05:09 +0200
commit1e307e9869b15cf1f76dcfda8f6fd49d05014d14 (patch)
treedb753efb60366a101611d4069695a4986088faff /include/datetime.php
parent2a578478167174b328352e0eafe8a4fdbe0fb68d (diff)
downloadvolse-hubzilla-1e307e9869b15cf1f76dcfda8f6fd49d05014d14.tar.gz
volse-hubzilla-1e307e9869b15cf1f76dcfda8f6fd49d05014d14.tar.bz2
volse-hubzilla-1e307e9869b15cf1f76dcfda8f6fd49d05014d14.zip
Fix bug #98, add "never" to relative_date(), fix batch operations
Diffstat (limited to 'include/datetime.php')
-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');
}