Change date format

This commit is contained in:
Robert Miles 2018-07-08 02:36:52 -04:00
parent 2258de0a97
commit 5083d9107a
2 changed files with 2 additions and 2 deletions

View File

@ -5,7 +5,7 @@
$last_author = $threads["usermap"][$thread["last_author"]]["user_name"];
$time = round($thread['created']);
$time = new DateTime("@{$time}");
$time = date_format($time, "c");
$time = date_format($time, "Y/m/d H:i");
$tt = $thread["title"];
$plural = $thread['reply_count']==1 ? "y" : "ies";
$tid = $thread["thread_id"];

View File

@ -3,7 +3,7 @@
$username = $thread["usermap"][$message["author"]]["user_name"];
$time = round($message['created']);
$time = new DateTime("@{$time}");
$time = date_format($time, "c");
$time = date_format($time, "Y/m/d H:i");
echo "\t\t<div class='well' id='post{$message["post_id"]}'>".PHP_EOL;
echo "\t\t\t<p>&gt;{$message['post_id']} {$username} @ {$time}</p>".PHP_EOL;
echo "\t\t\t<pre>".PHP_EOL;