From 458f182cef7fa10be0b711ea2d27c8bb1df2a2d9 Mon Sep 17 00:00:00 2001 From: lopar Date: Fri, 2 Mar 2018 01:44:06 +0200 Subject: [PATCH] =?UTF-8?q?=D0=A7=D0=B0=D1=82=20=D0=BD=D0=B0=20=D0=BA?= =?UTF-8?q?=D0=BE=D0=BB=D0=B5=D0=BD=D0=BA=D0=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- chat.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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']; }