From 2b934d63f318db93d5acbd9c6782c130a0f42f54 Mon Sep 17 00:00:00 2001 From: MaZderMind Date: Wed, 30 Dec 2015 19:52:08 +0100 Subject: fix sign for days-ago-countdown --- lib/helper.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/helper.php b/lib/helper.php index c23d211..170d224 100644 --- a/lib/helper.php +++ b/lib/helper.php @@ -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"; -- cgit v1.2.3