Date pb ???

Author Message

Patrice DUCLAUD

Tuesday 26 April 2005 5:42:00 am

Hello,

I've problem to display date in my templates.
all date updated in my site are shown with the value of 01/01/1970.
{$node.object.data_map.date_upadted|l10n(shortdate)}
when date_updated is 01/01/2005, the code show is 01/01/70.
no problem with currentdate().

Is there somebody who know what's wrong in my template or in parameters files ?

Thanks ...

Tuesday 26 April 2005 6:14:54 am

I'm using

{$node.object.data_map.dato.data_int|l10n( 'shortdate')}

and it works great. Using version 3.5.2

Patrice DUCLAUD

Tuesday 26 April 2005 6:39:35 am

Now i will use too :-)
and it works great. (Using version 3.5.0)

Thank you very much ....

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 22:58:45
Script start
Timing: Jan 18 2025 22:58:45
Module start 'layout'
Timing: Jan 18 2025 22:58:45
Module start 'content'
Timing: Jan 18 2025 22:58:47
Module end 'content'
Timing: Jan 18 2025 22:58:47
Script end

Main resources:

Total runtime1.5506 sec
Peak memory usage4,096.0000 KB
Database Queries57

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0056 587.7813152.6094
Module start 'layout' 0.00560.0034 740.390639.3906
Module start 'content' 0.00901.5401 779.7813501.1641
Module end 'content' 1.54900.0015 1,280.94538.2031
Script end 1.5506  1,289.1484 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.2215160.0002
Check MTime0.00140.0882160.0001
Mysql Total
Database connection0.00060.040210.0006
Mysqli_queries1.487495.9204570.0261
Looping result0.00070.0435550.0000
Template Total1.508497.320.7542
Template load0.00220.139020.0011
Template processing1.506297.134420.7531
Template load and register function0.00020.013210.0002
states
state_id_array0.00180.117610.0018
state_identifier_array0.00200.128120.0010
Override
Cache load0.00180.1161200.0001
Sytem overhead
Fetch class attribute can translate value0.00110.069420.0005
Fetch class attribute name0.00150.097740.0004
XML
Image XML parsing0.00840.540620.0042
class_abstraction
Instantiating content class attribute0.00000.002640.0000
General
dbfile0.01030.6664160.0006
String conversion0.00000.000640.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
5content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 14
 Number of unique templates used: 7

Time used to render debug report: 0.0002 secs