developer.jelix.org is not used any more and exists only for history. Post new tickets on the Github account.
developer.jelix.org n'est plus utilisée, et existe uniquement pour son historique. Postez les nouveaux tickets sur le compte github.

Ticket #866: 866-jFormsControlDatetime.patch

File 866-jFormsControlDatetime.patch, 780 bytes (added by thomas, 12 years ago)
  • lib/jelix/forms/controls/jFormsControlDatetime.class.php

     
    3333            $this->setData($value['year'].'-'.$value['month'].'-'.$value['day'].' '.$value['hour'].':'.$value['minutes'].':'.$value['seconds']);
    3434        }
    3535    }
     36   
     37    function getDisplayValue($value) {
     38        if ($value != '') {
     39            $dt = new jDateTime();
     40            $dt->setFromString($value, jDateTime::DB_DTFORMAT);
     41            $value = $dt->toString(jDateTime::LANG_DTFORMAT);
     42        }
     43        return $value;
     44    }
    3645}
     46 No newline at end of file