mirror of
https://github.com/friendica/friendica
synced 2025-04-23 23:10:10 +00:00
Fix bug #98, add "never" to relative_date(), fix batch operations
This commit is contained in:
parent
2a57847816
commit
1e307e9869
3 changed files with 14 additions and 22 deletions
|
@ -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');
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue