更新数据时间问题,总是1970

浏览:2718 发布日期:2014/05/23 分类:求助交流 关键字: 时间,1970,更新


标题,内容等更新没问题,但是时间就不行了了,一更新就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,如何在里面写呢???
最佳答案
评论( 相关
后面还有条评论,点击查看>>