示例#1
0
 /**
  * Sets control's value.
  * @param  string
  * @return void
  */
 public function setValue($value)
 {
     if (!is_array($value)) {
         $value = strptime($value, $this->parseValueFormat());
         // '%Y-%m-%d %H:%M'
     }
     if (isset($value['tm_year'])) {
         $value['tm_year'] += 1900;
     }
     return parent::setValue($value);
 }