summaryrefslogtreecommitdiff
path: root/src/web/_model/format.php
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/web/_model/format.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/web/_model/format.php b/src/web/_model/format.php
index 52b51be..d2a3700 100644
--- a/src/web/_model/format.php
+++ b/src/web/_model/format.php
@@ -39,7 +39,8 @@ class Format_model extends Model {
* @returns the formatted date
*/
public function date($date) {
- return $date;
+ $date=date_create($date);
+ return date_format($date, "Y-m-d H:i");
}
}