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

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 18 2025 11:13:01
Script start
Timing: Jan 18 2025 11:13:01
Module start 'layout'
Timing: Jan 18 2025 11:13:01
Module start 'content'
Timing: Jan 18 2025 11:13:02
Module end 'content'
Timing: Jan 18 2025 11:13:02
Script end

Main resources:

Total runtime0.8312 sec
Peak memory usage4,096.0000 KB
Database Queries59

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0054 588.1719152.6563
Module start 'layout' 0.00540.0038 740.828139.5234
Module start 'content' 0.00920.8205 780.3516575.2344
Module end 'content' 0.82970.0015 1,355.585912.0938
Script end 0.8312  1,367.6797 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00350.4235160.0002
Check MTime0.00130.1559160.0001
Mysql Total
Database connection0.00060.075910.0006
Mysqli_queries0.779493.7690590.0132
Looping result0.00050.0629570.0000
Template Total0.799396.220.3997
Template load0.00180.219720.0009
Template processing0.797595.946620.3988
Template load and register function0.00020.018910.0002
states
state_id_array0.00090.106610.0009
state_identifier_array0.00120.149420.0006
Override
Cache load0.00150.1836220.0001
Sytem overhead
Fetch class attribute can translate value0.00060.075630.0002
Fetch class attribute name0.00160.198350.0003
XML
Image XML parsing0.00120.139430.0004
class_abstraction
Instantiating content class attribute0.00000.001250.0000
General
dbfile0.00100.1262240.0000
String conversion0.00000.001140.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
3content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 12
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs