diff options
author | Fabio Comuni <fabrix.xm@gmail.com> | 2011-06-29 12:05:09 +0200 |
---|---|---|
committer | Fabio Comuni <fabrix.xm@gmail.com> | 2011-06-29 12:05:09 +0200 |
commit | 1e307e9869b15cf1f76dcfda8f6fd49d05014d14 (patch) | |
tree | db753efb60366a101611d4069695a4986088faff /include/datetime.php | |
parent | 2a578478167174b328352e0eafe8a4fdbe0fb68d (diff) | |
download | volse-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.php | 4 |
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'); } |