shithub: werc

Download patch

ref: 8952caa9035444e0e7995b85612b30a255b3c796
parent: 044eb3dab909ae0c2d6d8fc2f41dbf345904ae3d
author: sl <sl@stanleylieber.com>
date: Mon Dec 9 17:18:12 EST 2019

apps/blagh/atom.tpl, rss20.tpl: date -t -> date -a

--- a/apps/blagh/atom.tpl
+++ b/apps/blagh/atom.tpl
@@ -11,7 +11,7 @@
     ifs=() { summary=`{cat $f/index.md | strip_title_from_md_file | ifs=$difs {$formatter} } }
 }
 # rfc3339 date when feed was last updated.
-fupdated = `{ndate -t `{date `{mtime `{ls $blagh_root$blagh_dirs | grep -e '^'$blagh_root$blagh_dirs'\/[0-9][0-9][0-9][0-9]$' | tail -1} | awk '{print $1}'}}}
+fupdated = `{ndate -a `{date `{mtime `{ls $blagh_root$blagh_dirs | grep -e '^'$blagh_root$blagh_dirs'\/[0-9][0-9][0-9][0-9]$' | tail -1} | awk '{print $1}'}}}
 %}
 
 <feed xmlns="http://www.w3.org/2005/Atom"
@@ -47,7 +47,7 @@
         </div></content>
 
 % # rfc3339 date when entry was last updated.
-% eupdated=`{ndate -t `{date `{mtime $f | awk '{print $1}'}}}
+% eupdated=`{ndate -a `{date `{mtime $f | awk '{print $1}'}}}
         <updated>%($eupdated%)</updated>
     </entry>
 
--- a/apps/blagh/rss20.tpl
+++ b/apps/blagh/rss20.tpl
@@ -22,10 +22,10 @@
         <generator><![CDATA[Tom Duff's rc, and Kris Maglione's clever hackery]]></generator>
 %{
         # <webMaster>uriel99+rss@gmail.com (Uriel)</webMaster>
-	# rfc822 last time channel content changed.
+	# rfc2822 last time channel content changed.
 	lbd=`{ndate -m `{date `{mtime `{ls $blagh_root$blagh_dirs | grep -e '^'$blagh_root$blagh_dirs'\/[0-9][0-9][0-9][0-9]$' | tail -1} | awk '{print $1}'}}}
 	echo '<lastBuildDate>'$"lbd'</lastBuildDate>'
-	# rfc822 publication date for content in the channel.
+	# rfc2822 publication date for content in the channel.
 	pubdate=`{ndate -m}
         for(f in `{get_post_list $blagh_root$blagh_dirs}){
             statpost $f