Forums / Setup & design / sort by published date displays dates in UNIX format (admin mode)

sort by published date displays dates in UNIX format (admin mode)

Author Message

Lance Leger

Saturday 07 June 2003 3:31:23 am

When I try to sort content by published date, the content list displays
the date in UNIX format which is very ugly. Is there an easy way to
fix this problem by editing the admin templates? Could this be
fixed for future versions of eZ publish?

Bård Farstad

Saturday 07 June 2003 3:34:22 am

If you have a unix timestamp, which is what eZ publish uses to store dates, you can display this using the l10n() operator. E.g.
{$time_stamp_value|l10n(date)}
{$time_stamp_value|l10n(datetime)}
{$time_stamp_value|l10n(shortdate)}
{$time_stamp_value|l10n(time)}

This will display the data according to your locale settings.

--bård

Documentation: http://ez.no/doc

Paul Borgermans

Saturday 07 June 2003 5:16:21 am

And make sure you are editing the right templates, so run with template debugging on.

You may want to copy the admin sitedesign and siteaccess settings to another one and edit the templates there.

That's what I do.

Paul

eZ Publish, eZ Find, Solr expert consulting and training
http://twitter.com/paulborgermans