mirror of https://github.com/bbj-dev/bbjphp.git
Change date format
This commit is contained in:
parent
2258de0a97
commit
5083d9107a
2
main.php
2
main.php
|
@ -5,7 +5,7 @@
|
||||||
$last_author = $threads["usermap"][$thread["last_author"]]["user_name"];
|
$last_author = $threads["usermap"][$thread["last_author"]]["user_name"];
|
||||||
$time = round($thread['created']);
|
$time = round($thread['created']);
|
||||||
$time = new DateTime("@{$time}");
|
$time = new DateTime("@{$time}");
|
||||||
$time = date_format($time, "c");
|
$time = date_format($time, "Y/m/d H:i");
|
||||||
$tt = $thread["title"];
|
$tt = $thread["title"];
|
||||||
$plural = $thread['reply_count']==1 ? "y" : "ies";
|
$plural = $thread['reply_count']==1 ? "y" : "ies";
|
||||||
$tid = $thread["thread_id"];
|
$tid = $thread["thread_id"];
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
$username = $thread["usermap"][$message["author"]]["user_name"];
|
$username = $thread["usermap"][$message["author"]]["user_name"];
|
||||||
$time = round($message['created']);
|
$time = round($message['created']);
|
||||||
$time = new DateTime("@{$time}");
|
$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<div class='well' id='post{$message["post_id"]}'>".PHP_EOL;
|
||||||
echo "\t\t\t<p>>{$message['post_id']} {$username} @ {$time}</p>".PHP_EOL;
|
echo "\t\t\t<p>>{$message['post_id']} {$username} @ {$time}</p>".PHP_EOL;
|
||||||
echo "\t\t\t<pre>".PHP_EOL;
|
echo "\t\t\t<pre>".PHP_EOL;
|
||||||
|
|
Loading…
Reference in New Issue