I would like my page to show the actual publication and modified dates and times and not how many minutes, days or months ago since the publication or modified dates:
At the moment, this is showing up on my pages in Plone:
by awong — published 41 minutes ago, last modified 41 minutes ago
Is there a way I could display the actual date and time in Plone? Any advise would be most appreciated. Thanks so much.
I could change the template and got the result I wanted. However, I am having issues overriding the default through my theme product. My customized template is at zeocluster/src/mytheme.name/src/mytheme/name/browser/templates/plone.app.layout.viewlets.document_byline.pt
This is what I have in my zeocluster/src/mytheme.name/src/mytheme/name/browser/configure.zcml:
I keep getting this error: ConfigurationError: ('Invalid value for', 'layer', "ImportError: Couldn't import mytheme.name.browser.interfaces, No module named interfaces")
Am I missing something? Any advise would be most appreciated. Thank you so much.
This is awesome! Thank you so much, espenmn. This is what I did:
Created an interface.py file in the /browser folder and put the following code:
from plone.theme.interfaces import IDefaultPloneLayer
class IThemeSpecific(IDefaultPloneLayer):
"""Marker interface that defines a Zope 3 browser layer.
"""
It is now working like a charm! THANK YOU SO MUCH!!!! Cheers!!!!
The date format can of course be customized by replacing the 'LLL' part (see moment.js docs)
works with Barceloneta (tested on demo.plone.de), with other themes YMMV. But it could be seen as a compatibility test with Plone 5.1 if it does not work correctly the theme is not fully compaible