krz/hn

A brutalist web client for Hacker News.

clone: git clone https://gitbay.org/krz/hn.git

1ae16f7987d553d26da0df0ef916c25ec173da91

unsigned

author: Christian Cleberg <hello@cleberg.net> · 2023-06-01T14:53:57Z

fix accidental line end
 index.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/index.php b/index.php
index 8afaa13..fa92db9 100644
--- a/index.php
+++ b/index.php
@@ -171,7 +171,7 @@ function get_user(string $api_url, string $inline_title) {
 	$html_output = '<h1>' . $inline_title . '</h1>';
 	$html_output .= '<p>About: ' . $response['about']  . '</p>';
 	$html_output .= '<p>Karma: ' . $response['karma']  . '</p>';
-	$html_output .= '<p>Created: <time datetime="' . date('Y-m-d h:m:s', $response['created'])  . '>
+	$html_output .= '<p>Created: <time datetime="' . date('Y-m-d h:m:s', $response['created'])  . '>' . date('Y-m-d h:m:s', $response['created']) . '</time></p>';
 	$html_output .= '<p>Recently Submitted Posts:</p>';
 
 	$limit = count($response['submitted']) > 10 ? 10 : count($response['submitted']);