summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorRunxi Yu <me@runxiyu.org>2024-05-14 07:52:27 +0800
committerRunxi Yu <me@runxiyu.org>2024-05-14 07:52:27 +0800
commitcc50369d85d9ca656632dc68fcbb64fcb09ffd9f (patch)
tree11909ca7e1db82b697dc50d60a3c0e5848ff85aa
parent937fd906d627c5df27d24a1f374804f0fef1f40a (diff)
downloadwww-cc50369d85d9ca656632dc68fcbb64fcb09ffd9f.tar.gz
hlog
-rwxr-xr-xhlog.cgi11
1 files changed, 7 insertions, 4 deletions
diff --git a/hlog.cgi b/hlog.cgi
index ad8e134..25d813c 100755
--- a/hlog.cgi
+++ b/hlog.cgi
@@ -18,14 +18,17 @@ cat << EOF
 <body>
 <header>
     <h1>Runxi Yu's Hyperlog</h1>
+    <p>
+EOF
+
+TZ='Asia/Shanghai' date -r /srv/hlog/runxiyu.hlog '+%Y-%m-%d %H:%M:%S %Z'
+
+cat << EOF
+    </p>
 </header>
 <article>
 <pre>
 EOF
-TZ='Asia/Shanghai' ls --time-style '+%Y-%m-%d %H:%M:%S %Z' -l /srv/hlog/runxiyu.hlog
-printf '</pre>'
-
-printf '<pre>'
 sed 's/&/\&amp;/g; s/</\&lt;/g; s/>/\&gt;/g; s/"/\&quot;/g; s/'"'"'/\&#39;/g' /srv/hlog/runxiyu.hlog
 cat << EOF
 </pre>