Relative visit dates in the visit log ("2 weeks ago") #10
Labels
No labels
bug
ci-cd
duplicate
enhancement
help wanted
layout
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: lvl0/rater#10
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The visit log currently shows formatted dates (e.g. "1 Jun 2026"). Show relative times instead ("2 weeks ago", "yesterday") for a more natural feel. Use
Intl.RelativeTimeFormat— no external library needed.Scope: Replace the
formatDate()helper inmap_controller.jswith a relative-time implementation usingIntl.RelativeTimeFormat. Handle edge cases: very recent visits ("just now"), visits older than a year (fall back to formatted date).Size: small