Forums / General / Datetime problem
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
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)
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.