summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2023-07-26 19:53:49 +0200
committerdavidovski <david@davidovski.xyz>2023-07-26 19:53:49 +0200
commita1df2a48f3ef784fad0fe2183edf63eefcd7d220 (patch)
tree45a1919bf6c96ffb77e64843ed4037397b4e824d
parentf4fe55dcdb4cfa0055b87dc4365243a10318dc6d (diff)
use rfc2822 dates
-rwxr-xr-xsite/index.html2
-rwxr-xr-xsite/rss.xml2
2 files changed, 2 insertions, 2 deletions
diff --git a/site/index.html b/site/index.html
index b83f66b..1be1d83 100755
--- a/site/index.html
+++ b/site/index.html
@@ -34,7 +34,7 @@ for file in $(ls -t entries/*.html); do
<div class=\"small\">%s</div>
</a>
</li>
-" "${file%.*}.html" "$title" "$(git log --pretty=format:'%cd' --follow -- "$file" | tail -n 1)"
+" "${file%.*}.html" "$title" "$(git log --pretty=format:'%cD' --follow -- "$file" | tail -n 1)"
done
cat << EOF
diff --git a/site/rss.xml b/site/rss.xml
index f7bf597..65b3ba7 100755
--- a/site/rss.xml
+++ b/site/rss.xml
@@ -17,7 +17,7 @@ for entry in entries/*.html; do
printf "<item>\n"
printf "<title>%s</title>\n" "${title}"
printf "<link>%s</link>\n" "http://davidovski.xyz/$entry"
- printf "<pubDate>%s</pubDate>\n" "$(git log --pretty=format:'%cd' --follow -- "$entry" | tail -n 1)"
+ printf "<pubDate>%s</pubDate>\n" "$(git log --pretty=format:'%cD' --follow -- "$entry" | tail -n 1)"
printf "<description><![CDATA["