Back to top

Autore Topic: problema calendario  (Letto 886 volte)

Offline playpaf

  • Esploratore
  • **
  • Post: 91
    • Mostra profilo
problema calendario
« il: 13 Dic 2012, 23:32:40 »
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


 



Web Design Bolzano Kreatif