refactor(helpers): Rename tmeAgo function to formatRelativeTime for improved clarity and consistency in date formatting.

This commit is contained in:
Yoga Pangestu 2025-12-14 15:53:55 +07:00
parent 437fde9d7e
commit 9bb9164ac1

View File

@ -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 '-';