apps/blagh/atom.tpl, rss20.tpl: date -t -> date -a
This commit is contained in:
		
							parent
							
								
									139a3ea228
								
							
						
					
					
						commit
						5cd45d42fe
					
				
					 2 changed files with 4 additions and 4 deletions
				
			
		|  | @ -11,7 +11,7 @@ fn statpost { | ||||||
|     ifs=() { summary=`{cat $f/index.md | strip_title_from_md_file | ifs=$difs {$formatter} } } |     ifs=() { summary=`{cat $f/index.md | strip_title_from_md_file | ifs=$difs {$formatter} } } | ||||||
| } | } | ||||||
| # rfc3339 date when feed was last updated. | # 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" | <feed xmlns="http://www.w3.org/2005/Atom" | ||||||
|  | @ -47,7 +47,7 @@ fupdated = `{ndate -t `{date `{mtime `{ls $blagh_root$blagh_dirs | grep -e '^'$b | ||||||
|         </div></content> |         </div></content> | ||||||
| 
 | 
 | ||||||
| % # rfc3339 date when entry was last updated. | % # 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> |         <updated>%($eupdated%)</updated> | ||||||
|     </entry> |     </entry> | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -22,10 +22,10 @@ fn statpost { | ||||||
|         <generator><![CDATA[Tom Duff's rc, and Kris Maglione's clever hackery]]></generator> |         <generator><![CDATA[Tom Duff's rc, and Kris Maglione's clever hackery]]></generator> | ||||||
| %{ | %{ | ||||||
|         # <webMaster>uriel99+rss@gmail.com (Uriel)</webMaster> |         # <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}'}}} | 	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>' | 	echo '<lastBuildDate>'$"lbd'</lastBuildDate>' | ||||||
| 	# rfc822 publication date for content in the channel. | 	# rfc2822 publication date for content in the channel. | ||||||
| 	pubdate=`{ndate -m} | 	pubdate=`{ndate -m} | ||||||
|         for(f in `{get_post_list $blagh_root$blagh_dirs}){ |         for(f in `{get_post_list $blagh_root$blagh_dirs}){ | ||||||
|             statpost $f |             statpost $f | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Stanley Lieber
						Stanley Lieber