@@ 6,7 6,7 @@ shopt -s lastpipe
DEST=$1
TYPE=$(basename "$DEST" .xml)
-NOW=$(date -Iseconds)
+NOW=$(date +%s)
yq --output-format json --indent 0 '.posts[]' allposts.meta.yaml | readarray POSTS
@@ 31,7 31,7 @@ make_atom () {
<name>Josh Holland</name>
<email>josh@inv.alid.pw</email>
</author>
- <updated>$NOW</updated>
+ <updated>$(date -d "@$NOW" -Iseconds)</updated>
EOF
for post in "${POSTS[@]}"; do
setup_vars "$post"
@@ 59,7 59,7 @@ make_rss () {
<link>https://inv.alid.pw/</link>
<description></description>
<atom:link href="https://inv.alid.pw/rss.xml" rel="self" type="application/rss+xml"/>
- <lastBuildDate>$(date -d "$NOW" -R)</lastBuildDate>
+ <lastBuildDate>$(date -d "@$NOW" -R)</lastBuildDate>
EOF
for post in "${POSTS[@]}"; do
setup_vars "$post"