fulv
(Fulvio Casali)
March 23, 2016, 1:57am
1
I have a client who does not like the "2 months ago" date format in folder_contents, and wants the old absolute format (e.g. "2016/01/20") back.
In https://github.com/plone/mockup/blob/master/mockup/patterns/structure/pattern.js#L106 , I see this:
momentFormat: 'relative',
How would I go about replacing the value for momentFormat in the structure pattern?
Thanks
1 Like
vangheem
(Nathan Van Gheem)
March 23, 2016, 2:10am
2
Something like this should work(untested):
go to site setup -> resource registries
click pattern options tab
add "structure" with the value something like this: {"momentFormat": "-your format-"}
2 Likes
fulv
(Fulvio Casali)
March 23, 2016, 3:45pm
3
It totally does! Thank you!
This is the format I used to imitate the Plone 4 format (YMMV): {"momentFormat": "MMM DD, YYYY HH:MM A"}
I will document this next week in Sorrento.
1 Like
hvelarde
(hvelarde)
April 15, 2016, 2:37pm
4
I think fuzzy dates work most of the time for anonymous users but not for logged in users doing some site editing.
this should be the default in folder contents, but probably not for portlets/tiles, specially for dates around one week before and after the current date, IMO.
tkimnguyen
(T. Kim Nguyen)
December 26, 2017, 9:35pm
5