示例#1
0
 public function convertData($data)
 {
     $data = parent::convertData($data);
     if ($data === null && !$this->convert_null_to_now) {
         return null;
     }
     $date = new SwatDate($data);
     $date->setTZbyID($this->src_tz_id);
     $date->convertTZbyID($this->dst_tz_id);
     $data = $date->getDate();
     return $data;
 }