Ciao,
ho inserito un campo date, ma quando aggiungo la data mi scrive la seguende stringa: "26-22-2012" al posto di 26-12-2012, sapete dirmi del perché?
Questo è il codice che crea il campo di tipo date:
case 'date':
$options = array();
$options['size'] = 25;
$options['maxlength'] = 19;
if ($field->required == 1) {
$options['class'] = 'adsmanager_required';
$options['mosReq'] = '1';
$options['mosLabel'] = "$strtitle";
} else {
$options['class'] = 'adsmanager';
}
$document =& JFactory::getDocument();
$document->addScript(JURI::base() . '/includes/js/joomla.javascript.js');
$document->addStyleSheet(JURI::root().'/media/system/css/calendar-jos.css');
$return .= JHTML::_('behavior.calendar');
//$return .= JHTML::_('calendar', $value, "$field->name", "$field->name", JText::_('ADSMANAGER_DATE_FORMAT_LC'), $options);
$return .= JHTML::_('calendar', $value, "$field->name", "$field->name", JText::_('ADSMANAGER_DATE_FORMAT_LC'), null);
break;
Grazie