fusch.online

git / lists / casts

git.fusch.online/twtxt2html

Convert twtxt files to html
git clone git://git.fusch.online/twtxt2html
Log / Files / Issues

commit 97793ca0be7afe282992d6f0cf3ea437dc068589
parent 2adb618a24e962e0af90755bfb9e1cecddf3ddd9
Author: tutti <tutti@fusch.online>
Date:   Thu, 21 Nov 2019 21:18:50 +0100

add time zone to date

Diffstat:
Mtwtxt2html.sh | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/twtxt2html.sh b/twtxt2html.sh @@ -13,7 +13,7 @@ twtxt=$1 url=$2 sort -r $twtxt | while read -r line; do - date=$(date -d "$(cut -d"$(printf "\t")" -f1 <<< "$line")" +"%Y/%m/%d %H:%M") + date=$(date -d "$(cut -d"$(printf "\t")" -f1 <<< "$line")" +"%Y/%m/%d %H:%M %Z") cat <<EOF <div class="twtxt">