Share » Forums » Setup & design » sort by published date displays dates...

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

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

Saturday 07 June 2003 3:31:23 am - 2 replies

Author Message

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

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu