blog

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit 7349c8320071db9dd688a399e8512b33d61f875a
parent 5b223a2e2a9554a0ce74d2a8b439465ff982e910
Author: Andrew Laack <andrew@laack.co>
Date:   Sun, 28 Sep 2025 15:34:14 -0500

Trying to fix date formatting.

Diffstat:
Mposts/site/feed.xml | 4++--
Mscripts/convert.sh | 3++-
2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/posts/site/feed.xml b/posts/site/feed.xml @@ -7,7 +7,7 @@ <language>en-us</language> <managingEditor>andrew@laack.co</managingEditor> <webMaster>andrew@laack.co</webMaster> -<lastBuildDate>Sun, 28 Sep 2025 15:01:36 -0500</lastBuildDate> +<lastBuildDate>Sun, 28 Sep 2025 15:34:04 -0500</lastBuildDate> <atom:link href='https://blog.laack.co/feed.xml' rel='self' type='application/rss+xml'/> <item> <title><![CDATA[The Sustainability of YouTube]]></title> @@ -148,7 +148,7 @@ href="https://github.com/yt-dlp/yt-dlp">https://github.com/yt-dlp/yt-dlp</a></p> href="http://git.laack.co/blog/log.html">http://git.laack.co/blog/log.html</a></p> <p>[9] - <a href="https://cloud.google.com/storage/pricing#multi-regions">https://cloud.google.com/storage/pricing#multi-regions</a></p>]]></description> -<pubDate>2025/9/28</pubDate> +<pubDate>Sun, 28 Sep 2025 00:00:00 -0500</pubDate> <guid>https://blog.laack.co/the-sustainability-of-youtube.html</guid> </item> </channel> diff --git a/scripts/convert.sh b/scripts/convert.sh @@ -67,11 +67,12 @@ for ((i=${#post_files[@]}-1; i>=0; i--)); do DESCRIPTION="Blog post: $TITLE" fi - if [[ "$DATE" =~ ^[0-9]{4}-[0-9]{2}-[0-9]{2}$ ]]; then + if [[ "$DATE" =~ ^[0-9]{4}/[0-9]{1,2}/[0-9]{1,2}$ ]]; then RSS_DATE=$(date -d "$DATE" -R 2>/dev/null || echo "$DATE") else RSS_DATE="$DATE" fi + echo "<item> <title><![CDATA[$TITLE]]></title>