Format Time

Author Message

Masamune

Tuesday 30 August 2005 10:06:09 pm

Hi everyone,

I need to format data fetched from <i>ezTimeField</i>, the <i>ezTime</i> template dosen't make use of the locale instead it separates field values among dots.

Anything similar to <b>l10n('shortdate')</b> to use with time, I used <i>'shorttime'</i>, <i>'time'</i>.. all what I get is <i>3:00am</i> which is the wrong time of course.

Any help?

Thanks.

J-A Eberhard

Tuesday 30 August 2005 11:21:56 pm

Have a look into the documentation and use ezdate instead of eztime
http://ez.no/doc/ez_publish/technical_manual/3_6/reference/objects/ezdate

Open Source Solution Provider
Open-Net Ltd Switzerland
http://www.open-net.ch

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 03:44:55
Script start
Timing: Jan 31 2025 03:44:55
Module start 'layout'
Timing: Jan 31 2025 03:44:55
Module start 'content'
Timing: Jan 31 2025 03:44:57
Module end 'content'
Timing: Jan 31 2025 03:44:57
Script end

Main resources:

Total runtime1.2723 sec
Peak memory usage8,192.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0043 588.0000151.1953
Module start 'layout' 0.00440.0031 739.1953220.6406
Module start 'content' 0.00751.2641 959.83594,434.8047
Module end 'content' 1.27150.0007 5,394.64068.0469
Script end 1.2722  5,402.6875 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00310.2412160.0002
Check MTime0.00110.0899160.0001
Mysql Total
Database connection0.00070.052110.0007
Mysqli_queries1.201994.4712540.0223
Looping result0.00040.0307520.0000
Template Total1.229896.720.6149
Template load0.00170.134820.0009
Template processing1.228096.523220.6140
Template load and register function0.00110.084310.0011
states
state_id_array0.00150.120310.0015
state_identifier_array0.00130.102920.0007
Override
Cache load0.00140.1106130.0001
Sytem overhead
Fetch class attribute can translate value0.00160.128220.0008
Fetch class attribute name0.00170.137240.0004
XML
Image XML parsing0.00300.237920.0015
class_abstraction
Instantiating content class attribute0.00000.000640.0000
General
dbfile0.00300.2322210.0001
String conversion0.00000.000540.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
2content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/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: 9
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs