Fix date and post link preparation

This commit is contained in:
posweg 2020-08-16 11:20:18 +00:00
parent 0fde535c86
commit fa7c6d1533
1 changed files with 4 additions and 2 deletions

View File

@ -86,13 +86,15 @@ if(isset($_SESSION["uid"])){
// Time // Time
$time->settimestamp($current["q_date"]); $time->settimestamp($current["q_date"]);
echo("<p class='question-date'>" . $time->format("y-m-d h:i:s") . "</p>"); echo('<a href="?p=' . $current["id"] . '">');
echo("<p class='question-date'>" . $time->format("Y-m-d h:i:s") . "</p>");
echo("</a>");
if($current["answer"]){ if($current["answer"]){
echo("<div class='answer'>"); echo("<div class='answer'>");
echo("<p class='answer-text'>" . $current["answer"] . "</p>"); echo("<p class='answer-text'>" . $current["answer"] . "</p>");
$time->settimestamp($current["a_date"]); $time->settimestamp($current["a_date"]);
echo("<p class='answer-date'>" . $time->format("y-m-d h:i:s") . "</p>"); echo("<p class='answer-date'>" . $time->format("Y-m-d h:i:s") . "</p>");
echo("</div>"); echo("</div>");
} }
echo("\n\n"); echo("\n\n");