Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

How to disable defaultRelativeTime on Assets views.

blumukesh
Level 2
Level 2

Basically , Our requirement is to disable defaultRelativeTime on Assets views .

If we modify any assets - timestamp(Modified,) views like - "a few seconds ago" 
Actually we are looking to display format like - "Sep 12, 2016, 5:16:46 PM" .
Screenshot 2021-11-02 at 8.22.43 PM.png
I could see defaultRelativeTime in moment js but not sure to modify for disable defaultRelativeTime .

Any thoughts/pointer on this please .

1 Accepted Solution
blumukesh
Correct answer by
Level 2
Level 2

Thanks Arun!
I found better way to solve this problem.
Solution already available in OOTB AEM:-
Click on User icon --> My Preferences --> User Preferences --> Update Relative Date Presentation to Always show exact date --> Accept
Screenshot 2021-11-03 at 3.50.11 PM.png
Tested - it works based on requirement.

View solution in original post

3 Replies
Arun_Patidar
Community Advisor
Community Advisor

Hi,

I am not sure if you changed the existing code what would be the impact but for the safe side this can be achieved from front end side.

You can update the text with the actual value on contentload  and content change event.

 

Screenshot 2021-11-02 at 17.19.01.png

blumukesh
Correct answer by
Level 2
Level 2

Thanks Arun!
I found better way to solve this problem.
Solution already available in OOTB AEM:-
Click on User icon --> My Preferences --> User Preferences --> Update Relative Date Presentation to Always show exact date --> Accept
Screenshot 2021-11-03 at 3.50.11 PM.png
Tested - it works based on requirement.

View solution in original post