diff --git a/chat.php b/chat.php index 50d2580..9a0c9df 100644 --- a/chat.php +++ b/chat.php @@ -15,7 +15,8 @@ include_once "functions.php"; $chat = db::c()->query('SELECT * FROM `chat` ORDER BY `id` DESC LIMIT 50'); while ($message = $chat->fetch_assoc()) { - echo $message['msgdate'].": " . $message['msg']; + $d = new DateTime($message['msgdate']); + echo $d->format('H:i').": " . $message['msg']; }