diff options
author | Friendika <info@friendika.com> | 2011-06-29 03:44:05 -0700 |
---|---|---|
committer | Friendika <info@friendika.com> | 2011-06-29 03:44:05 -0700 |
commit | 26cd3a47036b860d1ec8a42b69116ac41500e522 (patch) | |
tree | db753efb60366a101611d4069695a4986088faff /include/datetime.php | |
parent | 2a578478167174b328352e0eafe8a4fdbe0fb68d (diff) | |
parent | 1e307e9869b15cf1f76dcfda8f6fd49d05014d14 (diff) | |
download | volse-hubzilla-26cd3a47036b860d1ec8a42b69116ac41500e522.tar.gz volse-hubzilla-26cd3a47036b860d1ec8a42b69116ac41500e522.tar.bz2 volse-hubzilla-26cd3a47036b860d1ec8a42b69116ac41500e522.zip |
Merge pull request #130 from fabrixxm/admin
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'); } |