Skip to content

Commit

Permalink
#3605 - set 'show secs' parameter to true by default
Browse files Browse the repository at this point in the history
Used in relative datestamp. This makes sure "just now" is properly displayed".
  • Loading branch information
Moc committed Feb 9, 2019
1 parent 99074ca commit 4f90105
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion e107_handlers/date_handler.php
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ function convert_date($datestamp, $mask = '')
break;

case 'relative':
return $this->computeLapse($datestamp, time(), false, false, 'short') ;
return $this->computeLapse($datestamp, time(), false, true, 'short') ;
break;

default:
Expand Down Expand Up @@ -650,6 +650,7 @@ function computeLapse($older_date, $newer_date = FALSE, $mode = FALSE, $show_sec
if($format === 'short') { break; }
}


if(strpos($ret[0],$secs) !== false)
{
$justNow = deftrue('LANDT_10',"Just now");
Expand Down

0 comments on commit 4f90105

Please sign in to comment.