[TASK] Update global relative date
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 970
- Forks
- 486
- Avg merge
- 3d 33m
- Merged PRs (30d)
- 170
Description
Description
Update the global relative date component so that it follows the following rules:
Date Display Rules:
Last Edited: Displays the word “Current”.
Example: Current
Today: Shows the word “Today” followed by the time.
Example: Today, 9:20 AM
This Year (but not today): Shows the month, day, and time, the year is omitted.
Example: Sep 6, 7:26 PM
Previous Years: Includes the month, day, year, and time.
Example: Dec 16, 2024, 8:15 AM
These rules will apply everywhere in the system, including tables, history, push publish, etc.
Examples:
Today, 3:34pm
Oct 23, 4:50
Acceptance Criteria
Relative dates now work like this:
Today, 3:34pm
Oct 23, 4:50
Priority
None
Additional Context
https://dotcms.slack.com/archives/C0893BF7GRJ/p1760008447648969
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Locate the global relative date component and trace its usages in tables, history, and push publish. Check the existing date-formatting tests or entry points first, then verify that edited items show “Current,” today shows the time, this-year dates omit the year, and previous-year dates include it everywhere.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100