shithub: werc

Download patch

ref: 14dbbf164695d3130c34a4fb85a52a98340a94ca
parent: 6af551c9bc518e7d6417bcd0e493eae87b197879
author: uriel <[email protected]>
date: Wed Dec 24 04:36:52 EST 2008

Replace stat(1) with mtime(1) (disabled code for now)

--- a/lib/feeds/atom.tpl
+++ b/lib/feeds/atom.tpl
@@ -14,7 +14,7 @@
     # Not used: date=`{/bin/date -Rd `{basename $f |sed 's/(^[0-9\-]*).*/\1/; s/-[0-9]$//'}}
     # TODO: use mtime(1) and ls(1) instead of lunix's stat(1)
     stat=`{stat -c '%Y %U' $f}
-    #mdate=`{/bin/date -Rd $stat(1)} # Not used because it is unreliable
+    #mdate=`{/bin/date -Rd `{mtime $f|awk '{print $1}' }} # Not used because it is unreliable
     by=$stat(2)
     ifs=() { summary=`{cat $f | crop_text 512 ... | $formatter } }
 }