Datetime problem

Author Message

Guy Brun

Thursday 20 April 2006 5:18:29 am

Is there a way to set leading zero (in the hour input field) by default for a date and time attribute (for instance in the article class)?

Can this be set in datetime.ini ?

Betsy Gamrat

Thursday 20 April 2006 8:57:12 am

You could override the content/edit template for that attribute type.

Set <b>value="0"</b> for the input tag.

Mark Marsiglio

Thursday 20 April 2006 9:11:07 am

check the DateTime block of the locale file (share/locale) associated with the language that you have installed on your system. It allows for modificatioan of the formatting of currency, date, and other regional settings.

http://www.thinkcreative.com
Turning Ideas Into Strategic Solutions

Guy Brun

Thursday 20 April 2006 11:44:43 pm

Betsy,

If I try to set value=0 I will in worst case end up with three digits (i.e. 15 hour will be 015 our)

Guy Brun

Thursday 20 April 2006 11:48:45 pm

Mark,

I changed the share/locale ini file for my language but nothing changed. I also tried to put the [DateTime] settings in site.ini.append.php but still no leading zero.

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 19:15:13
Script start
Timing: Jan 18 2025 19:15:13
Module start 'layout'
Timing: Jan 18 2025 19:15:13
Module start 'content'
Timing: Jan 18 2025 19:15:13
Module end 'content'
Timing: Jan 18 2025 19:15:13
Script end

Main resources:

Total runtime0.8192 sec
Peak memory usage4,096.0000 KB
Database Queries65

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0060 587.7891152.6094
Module start 'layout' 0.00600.0027 740.398439.4063
Module start 'content' 0.00870.8088 779.8047591.6797
Module end 'content' 0.81750.0016 1,371.484412.1953
Script end 0.8191  1,383.6797 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00360.4362160.0002
Check MTime0.00140.1735160.0001
Mysql Total
Database connection0.00140.167010.0014
Mysqli_queries0.764793.3490650.0118
Looping result0.00060.0776630.0000
Template Total0.785595.920.3927
Template load0.00230.278920.0011
Template processing0.783295.602520.3916
Template load and register function0.00030.032710.0003
states
state_id_array0.00100.119710.0010
state_identifier_array0.00160.197220.0008
Override
Cache load0.00170.2134180.0001
Sytem overhead
Fetch class attribute can translate value0.00060.067130.0002
Fetch class attribute name0.00110.132070.0002
XML
Image XML parsing0.00110.128330.0004
class_abstraction
Instantiating content class attribute0.00000.001770.0000
General
dbfile0.00270.3351210.0001
String conversion0.00000.001040.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
5content/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/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: 14
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs