fix sign for days-ago-countdown

This commit is contained in:
MaZderMind 2015-12-30 19:52:08 +01:00
parent 3ef4f8d82a
commit 2b934d63f3

View file

@ -93,7 +93,7 @@ function days_diff_readable($date)
return round(-$days / 30)." months ago";
if($days < 0)
return "$days days ago";
return (-$days)." days ago";
if($days > 60)
return 'in '.round($days / 30)." months";