mirror of
https://github.com/Xkeeper0/jul.git
synced 2025-07-30 19:51:59 -07:00
fix 'x.0 years' bug and add sort by last active to memberlist
[closes #45] also adds tooltips (title tags) to the "registered on" and "last active" fields in the memberlist, which contain a relative-format time (e.g. '1 day 5 hrs. ago')
This commit is contained in:
@@ -329,7 +329,7 @@ function timeunits($sec){
|
||||
if($sec<86400) return floor($sec/3600).' hours';
|
||||
if($sec<172800) return '1 day';
|
||||
if($sec<31556926) return floor($sec/86400).' days';
|
||||
return sprintf("%.1f years", floor($sec/31556926));
|
||||
return sprintf("%.1f years", $sec/31556926);
|
||||
}
|
||||
|
||||
function timeunits2($sec){
|
||||
|
Reference in New Issue
Block a user