ref: fb491d7a747b26f17caf11aca82be4d9e611c56d
parent: a6b5c4f059ebbfd977b0ad800c79004dfcc37fe7
author: Ori Bernstein <[email protected]>
date: Sun Aug 29 11:51:48 EDT 2021
feed: use date -f$fmt instead of -m date -m was removed, and I broke an external script. oops.
--- a/feed
+++ b/feed
@@ -11,7 +11,7 @@
guid='http://shithub.us/git/'$puser/$prepo/$phash'/commit.html'
message=`{htcat $gitfs/object/$phash/msg | sed 1q}
description=`''{htcat $gitfs/object/$phash/msg}
- date=`{date -m `{mtime $gitfs/object/$phash/msg |awk '{print $1}'}}
+ date=`{date -uf$dfmt `{mtime $gitfs/object/$phash/msg |awk '{print $1}'}}
author=`"{htcat $gitfs/object/$phash/author |awk '{print $1}'}
echo ' <item>
<guid>'$"guid'</guid>
@@ -34,6 +34,7 @@
gituser=$1
repo=$2
refname=$3
+dfmt='WW, DD MMM YYYY hh:mm:ss Z'
repons $gituser $repo
repodir=/mnt/$repo/.git
@@ -54,7 +55,7 @@
<title>'$gituser/$repo' git log</title>
<link>http://shithub.us/git/'$gituser/$repo/'HEAD/log.html</link>
<description>shithub git/log for repository '$gituser/$repo'</description>
- <lastBuildDate>'`"{date -m}'</lastBuildDate>
+ <lastBuildDate>'`"{date -uf$dfmt}'</lastBuildDate>
<language>en-us</language>
'