refactor(helpers): Rename tmeAgo function to formatRelativeTime for improved clarity and consistency in date formatting.
This commit is contained in:
parent
437fde9d7e
commit
9bb9164ac1
@ -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 '-';
|
||||
|
||||
Loading…
Reference in New Issue
Block a user