Problem "currentdate"

Author Message

Vicente Olivan

Wednesday 01 March 2006 10:22:44 am

The code http://ez.no/products/ez_publish/documentation/reference/template_operators/data_extraction/currentdate show current date of server ?

If it is thus, not work to me, show: Current timestamp: 1141240127

Some suggestion?
Thanks

Konrad Mazurkiewicz

Wednesday 01 March 2006 2:23:59 pm

Yes, this shows current date on server but in timestamp format.
If you want human friendly format of date use currentdate() with datetime operator.
Look at http://ez.no/doc_hidden/ez_publish/technical_manual/3_6/reference/template_operators/formatting_and_internationalization/datetime

Regards
Konrad

Vicente Olivan

Thursday 02 March 2006 7:21:38 am

OK, Thanks

works perfectly

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:20:29
Script start
Timing: Jan 18 2025 11:20:29
Module start 'layout'
Timing: Jan 18 2025 11:20:29
Module start 'content'
Timing: Jan 18 2025 11:20:30
Module end 'content'
Timing: Jan 18 2025 11:20:30
Script end

Main resources:

Total runtime0.7654 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.0051 589.0391152.6250
Module start 'layout' 0.00510.0032 741.664139.4297
Module start 'content' 0.00830.7555 781.0938502.1406
Module end 'content' 0.76380.0015 1,283.23448.1875
Script end 0.7653  1,291.4219 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.4143160.0002
Check MTime0.00140.1802160.0001
Mysql Total
Database connection0.00070.094910.0007
Mysqli_queries0.719694.0275570.0126
Looping result0.00050.0698550.0000
Template Total0.735996.220.3680
Template load0.00190.252020.0010
Template processing0.734095.898520.3670
Template load and register function0.00010.014110.0001
states
state_id_array0.00080.107310.0008
state_identifier_array0.00080.110420.0004
Override
Cache load0.00150.2002180.0001
Sytem overhead
Fetch class attribute can translate value0.00050.068620.0003
Fetch class attribute name0.00140.184940.0004
XML
Image XML parsing0.00070.091020.0003
class_abstraction
Instantiating content class attribute0.00000.001750.0000
General
dbfile0.00080.1103160.0001
String conversion0.00000.001240.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
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
3content/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: 15
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs