mirror of
https://github.com/voc/streaming-website
synced 2024-11-10 06:34:17 +00:00
fix sign for days-ago-countdown
This commit is contained in:
parent
3ef4f8d82a
commit
2b934d63f3
1 changed files with 1 additions and 1 deletions
|
@ -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";
|
||||
|
|
Loading…
Reference in a new issue