date format

Author Message

risto CMS user

Sunday 20 November 2005 6:32:08 am

I have this in a temlate

{attribute_view_gui attribute=$node.object.data_map.date}

it gives me this date format:
2005.02.01 14:00

What do I need to doo to make the date dormnat:

dd:mm:yyyy => 21:11:2005

can someone show it on the code example?

Nathan Kelly

Sunday 20 November 2005 3:52:30 pm

Hi risto, check the docs, you might find what you need here:
http://ez.no/doc/ez_publish/technical_manual/3_6/reference/template_operators/formatting_and_internationalization/datetime

Cheers!

Pardon me while I burst into flames...

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 31 2025 05:59:52
Script start
Timing: Jan 31 2025 05:59:52
Module start 'layout'
Timing: Jan 31 2025 05:59:52
Module start 'content'
Timing: Jan 31 2025 05:59:53
Module end 'content'
Timing: Jan 31 2025 05:59:53
Script end

Main resources:

Total runtime1.1053 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0061 588.0078151.1953
Module start 'layout' 0.00610.0028 739.203136.6016
Module start 'content' 0.00891.0953 775.8047924.6719
Module end 'content' 1.10420.0010 1,700.47667.8906
Script end 1.1052  1,708.3672 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00310.2772160.0002
Check MTime0.00130.1134160.0001
Mysql Total
Database connection0.00120.110710.0012
Mysqli_queries1.047894.8035540.0194
Looping result0.00050.0464520.0000
Template Total1.067696.620.5338
Template load0.00210.194220.0011
Template processing1.065596.398820.5327
Template load and register function0.00110.103210.0011
states
state_id_array0.00310.283310.0031
state_identifier_array0.00240.216920.0012
Override
Cache load0.00160.1460160.0001
Sytem overhead
Fetch class attribute can translate value0.00050.046120.0003
Fetch class attribute name0.00190.173140.0005
XML
Image XML parsing0.00500.449420.0025
class_abstraction
Instantiating content class attribute0.00000.000640.0000
General
dbfile0.00720.6516220.0003
String conversion0.00000.002740.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
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
3content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.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: 7

Time used to render debug report: 0.0002 secs