From f983b2a2c529965b5413e484211b8efeee1908cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bruno=20Ryb=C3=A1rsky?= Date: Sun, 29 Jan 2023 21:23:57 +0100 Subject: [PATCH] fix timestamp for real --- index.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.php b/index.php index 2b6d036..06ea3b1 100755 --- a/index.php +++ b/index.php @@ -115,7 +115,7 @@ if (!empty($_SESSION["kod"]) && !empty($_SESSION['listeners']) && !empty($_SESSI '; if ($stmt7->num_rows > 0){ while ($stmt7->fetch()){ - $chatadm = $chatadm . '' . $author . '' . $tmstmp . ' GMT' . $message . '' . "\n"; + $chatadm = $chatadm . '' . $author . '' . $timestamp . ' GMT' . $message . '' . "\n"; } } $chatadm = $chatadm . ''; @@ -235,7 +235,7 @@ if (!empty($_GET['chat'])){ $data = ""; if ($stmt10->num_rows() > 0) { while ($stmt10->fetch()){ - $data = $data . '• ' . $author . ' on ' . date("d.m.Y H:i:s", intval($tmstmp)) . ' GMT said: ' . $msg . "\n"; + $data = $data . '• ' . $author . ' on ' . $tmstmp . ' GMT said: ' . $msg . "\n"; } } echo $data;