$format is used within the calendar formfield on line 170. If you change it to the date format, you need a change there as well otherwise strftime() will fail.
// Handle the special case for "now".
if (strtoupper($this->value) == 'NOW')
{
$this->value = strftime($format);
}
The difference between the two formats (data or strftime) are not only a leading %. Especially if it comes to the time part it will fail, but there are other places as well. For the time, strftime uses %H:%M:%S while date uses H:i:s to get the regular time format 21:15:00.
At least two issues with that:
$format
is used within the calendar formfield on line 170. If you change it to the date format, you need a change there as well otherwisestrftime()
will fail.%
. Especially if it comes to the time part it will fail, but there are other places as well. For the time, strftime uses%H:%M:%S
while date usesH:i:s
to get the regular time format 21:15:00.edited because I read code wrong, sorry