From 40e18c5adbc844cd551b087decf6d8fe42ef15bd Mon Sep 17 00:00:00 2001 From: wangyidong Date: Mon, 2 Jul 2012 15:23:59 +0000 Subject: [PATCH] * format date. --- module/my/control.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/my/control.php b/module/my/control.php index e314204436..1350124ff5 100644 --- a/module/my/control.php +++ b/module/my/control.php @@ -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;