aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Cleberg <hello@cleberg.net>2023-06-05 21:25:52 -0500
committerChristian Cleberg <hello@cleberg.net>2023-06-05 21:25:52 -0500
commit7f0d14fe6fe950ebdbe1fbeffb644d4535680f62 (patch)
tree81d50adee32530674cba824414f08fdd60b65cba
parent4360165924c490ca7738b73dcfd70919c760a839 (diff)
downloadhn-7f0d14fe6fe950ebdbe1fbeffb644d4535680f62.tar.gz
hn-7f0d14fe6fe950ebdbe1fbeffb644d4535680f62.tar.bz2
hn-7f0d14fe6fe950ebdbe1fbeffb644d4535680f62.zip
fix: user comment datetimes used incorrect taf
-rw-r--r--index.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/index.php b/index.php
index 91266ec..f9e74eb 100644
--- a/index.php
+++ b/index.php
@@ -195,9 +195,9 @@ function get_user(string $api_url, string $inline_title) {
$html = 'TODO: Add logic to handle polls here.';
} else {
// TODO: Add link to parent with $sub_response['parent']
- $html = '<div><timedatetime="' . date('Y-m-d h:m:s', $sub_response['time']);
+ $html = '<div><time datetime="' . date('Y-m-d h:m:s', $sub_response['time']);
$html .= '">' . date('Y-m-d h:m:s', $sub_response['time']);
- $html .= '</time><br><p>' . $sub_response['text']; $html .= '</p></div>';
+ $html .= '</time><br><p>' . $sub_response['text'] . '</p></div>';
}
$html_output .= $html;
}