[html-formfu] DateTime: problem with "hour" select
Jens Schwarz
blacky6767 at gmx.de
Fri Jan 9 06:39:34 GMT 2009
Hi,
I have a problem with the hour selectbox of the DateTime element introduced in 0.03006: I use the DateTime element to represent a datetime column in my mysql db. My yml's look like this (one for creating a record, one for editing a record):
(...)
- type: DateTime
name: mydatetime
label: mydatetime
year:
prefix: "-year-"
month:
prefix: "-month-"
day:
prefix: "-day-"
hour:
prefix: "-hour-"
minute:
prefix: "-minute-"
strftime: "%Y-%m-%d %H:%M:00"
(...)
(I hope I use the strftime parameter correctly to produce YYYY-MM-DD HH:MM:00.)
So what I detected is, that if I edit a record and in my db is a datetime like "2009-01-09 07:50:00", the FormFu form shows:
"2009" "01" "09" "-hour-" "50" where I would expect "2009" "01" "09" "07" "50".
If on the other hand the db record is "2009-01-09 17:50:00", FormFu correctly produces the selectboxes "2009" "01" "09" "17" "50".
Is this a bug in the FormFu DateTime element or am I using this element in the wrong way?
Thanks
Jens
--
Sensationsangebot verlängert: GMX FreeDSL - Telefonanschluss + DSL
für nur 16,37 Euro/mtl.!* http://dsl.gmx.de/?ac=OM.AD.PD003K1308T4569a
More information about the HTML-FormFu
mailing list