标题,内容等更新没问题,但是时间就不行了了,一更新就1970-01-01
模版时间是这么写的,数据获取
....name="time" value="{$conn.time|date='Y-m-d H:NN',###}">更新提交到控制器update里时候 public function update(){
$Form= M('Article');
if($Form->create()) {
$result = $Form->save();
if($result) {
$this->success('操作成功!');
}else{
$this->error('写入错误!');
}
}else{
$this->error($Form->getError());
}
}其他没问题,就时间总是1970,如何在里面写呢???最佳答案