I have two fields in my admin/componsents/com_xxxxx/models/forms/xxxxx.xml file.
these feed into an input form for administrators on the back end of Joomla 2.5
<field name="f_start" type="calendar" class="inputbox"
required="true"
format="%Y-%m-%d %H:%M:%S"
default="0000-00-00 09:30:00"
label="COM_xxxxx_F_START"
description="COM_xxxxx_F_START_DESC"
filter="safehtml" />
<field name="f_end" type="calendar" class="inputbox"
required="true"
format="%Y-%m-%d %H:%M:%S"
default="0000-00-00 19:30:30"
label="COM_xxxxx_F_END"
description="COM_xxxxx_F_END_DESC"
filter="safehtml" />
These are essentially start and end dates of when an article is published. however when selecting the datepicker/calendar icon and choosing a date the field is updated to the date chosen but keeps the 09:30:00 default start time. this seems to work for times between 01:30:00 through to 11:30 any afternoon times get reset to now when a date is selected.
can anyone explain why? or how to keep the default times on the date selector?
if the end date could also default to 28 days from the start date?
thanks in advance.