* format date.

This commit is contained in:
wangyidong
2012-07-02 15:23:59 +00:00
parent 50dcc5381b
commit 40e18c5adb
+1 -1
View File
@@ -86,7 +86,7 @@ class my extends control
/* Assign. */
$this->view->dates = $this->loadModel('todo')->buildDateList();
$this->view->todos = $this->todo->getList($type, $account, $status, 0, $pager);
$this->view->date = (int)$type == 0 ? date(DT_DATE1) : $type;
$this->view->date = (int)$type == 0 ? date(DT_DATE1) : date(DT_DATE1, strtotime($type));
$this->view->type = $type;
$this->view->status = $status;
$this->view->account = $this->app->user->account;