diff --git a/site/views/helpers/format.php b/site/views/helpers/format.php
index daa16cb..e8735fd 100644
--- a/site/views/helpers/format.php
+++ b/site/views/helpers/format.php
@@ -61,7 +61,7 @@ class FormatHelper extends AppHelper {
$date_html = ''.$date_html.'';
if ($age) {
- $date_html .= ' (' . self::age($date, $class, $time ? 0 : 60*60*24) . ')';
+ $date_html .= ' (' . self::age($date, $class, true, $time ? 0 : 60*60*24) . ')';
$date_html = ''.$date_html.'';
}
@@ -100,7 +100,7 @@ class FormatHelper extends AppHelper {
return $comment;
}
- function age($datetime, $class, $min_span = 0) {
+ function age($datetime, $class, $suffix = false, $min_span = 0) {
if (!isset($datetime))
return null;
@@ -207,9 +207,12 @@ class FormatHelper extends AppHelper {
$age .= ' ' . self::_n($approx, $unit);
- if ($backwards)
- $age .= ' ago';
-
+ if ($suffix) {
+ if ($backwards)
+ $age .= ' from now';
+ else
+ $age .= ' ago';
+ }
}
$age = ''.__($age, true).'';