From 744b7d82a7fbdead2c0165eed09e4608c246ab93 Mon Sep 17 00:00:00 2001 From: Tom Udding Date: Tue, 17 Dec 2024 17:42:40 +0100 Subject: [PATCH] fix: also show hours for clarity It was a design decision to not show the hours remaining when showing anything more than a day away. However, it turns out that this can be confusing for activities that take place within 2 days from now or activities that are far in the future. Co-Authored-By: Martijn <61974936+Martijn-vanDijk@users.noreply.github.com> --- module/Application/src/View/Helper/TimeDiff.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/Application/src/View/Helper/TimeDiff.php b/module/Application/src/View/Helper/TimeDiff.php index b3e4b30718..7a323bff9c 100644 --- a/module/Application/src/View/Helper/TimeDiff.php +++ b/module/Application/src/View/Helper/TimeDiff.php @@ -55,7 +55,7 @@ public function __invoke( $units = ['hour', 'minute']; } } else { - $units = ['year', 'month', 'week', 'day']; + $units = ['year', 'month', 'week', 'day', 'hour']; } foreach ($units as $unit) {