From 9bb9164ac1cbb359876333906ac9aa1c2f59735e Mon Sep 17 00:00:00 2001 From: Yoga Pangestu Date: Sun, 14 Dec 2025 15:53:55 +0700 Subject: [PATCH] refactor(helpers): Rename tmeAgo function to formatRelativeTime for improved clarity and consistency in date formatting. --- app/Helpers/DateTimeHelpers.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Helpers/DateTimeHelpers.php b/app/Helpers/DateTimeHelpers.php index 7573669..978a9f5 100644 --- a/app/Helpers/DateTimeHelpers.php +++ b/app/Helpers/DateTimeHelpers.php @@ -70,7 +70,7 @@ function formatAgeYearsMonths(?string $birthdate = null): string * Get relative time string using Carbon's diffForHumans(). * Returns localized relative time (e.g. "2 hours ago", "3 days ago"). */ - function tmeAgo(?string $date = null): string + function formatRelativeTime(?string $date = null): string { if (! $date) { return '-';