apps/blagh/rss20.tpl: find the correct most recently updated file so the <lastBuildDate> field is precisely accurate.
This commit is contained in:
parent
7190091456
commit
0011a6aa7e
1 changed files with 1 additions and 1 deletions
|
|
@ -23,7 +23,7 @@ fn statpost {
|
|||
%{
|
||||
# <webMaster>uriel99+rss@gmail.com (Uriel)</webMaster>
|
||||
# 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/[0-9][0-9][0-9][0-9]/[0-9][0-9]/[0-9][0-9]/[0-9] | tail -1} | awk '{print $1}'}}}
|
||||
echo '<lastBuildDate>'$"lbd'</lastBuildDate>'
|
||||
# rfc2822 publication date for content in the channel.
|
||||
pubdate=`{ndate -m}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue