diff options
author | Freya Murphy <freya@freyacat.org> | 2024-04-02 18:13:02 -0400 |
---|---|---|
committer | Freya Murphy <freya@freyacat.org> | 2024-04-02 18:13:02 -0400 |
commit | 7e2553646c27cae8baaca1cc5c13d980661b5d90 (patch) | |
tree | 822b9a2184834fd8913d7a3d8cfe5cf0005c1728 /src/web/_model/format.php | |
parent | start custom banner and avatar loading (diff) | |
download | xssbook2-7e2553646c27cae8baaca1cc5c13d980661b5d90.tar.gz xssbook2-7e2553646c27cae8baaca1cc5c13d980661b5d90.tar.bz2 xssbook2-7e2553646c27cae8baaca1cc5c13d980661b5d90.zip |
finish profile directory (mostly)
Diffstat (limited to 'src/web/_model/format.php')
-rw-r--r-- | src/web/_model/format.php | 3 |
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"); } } |