ref: 337f9d5514a91efb6db99e1d1905783975757fbf
parent: f70569dd9abd9bada923762be37f4ddf7dcd0684
author: sl <sl@stanleylieber.com>
date: Wed Feb 10 15:33:27 EST 2016
apps/blagh: use new datei and datet functions
--- a/apps/blagh/app.rc
+++ b/apps/blagh/app.rc
@@ -26,7 +26,7 @@
if(check_user $conf_blog_editors) {
editor_mode=on
if(~ $"post_arg_date '')
- post_date=`{date -i|sed 's,-,/,g'} # date -i is 9front/9base only
+ post_date=`{datei|sed 's,-,/,g'}
if not
post_date=$post_arg_date
ll_add handlers_bar_left echo '<a href="'$blagh_uri'new_post">Make a new post</a>'
--- a/apps/blagh/atom.tpl
+++ b/apps/blagh/atom.tpl
@@ -5,7 +5,7 @@
fn statpost {
f = $1
- updated = `{date -t `{mtime $f | awk '{print $1}'}} # date -t is 9front/9base only
+ updated = `{datet `{mtime $f | awk '{print $1}'}}
post_uri=$base_url^`{cleanname `{echo $f | sed -e 's!^'$sitedir'!!'}}^'/'
title=`{read $f/index.md}
# Not used: date=`{/bin/date -Rd `{basename $f |sed 's/(^[0-9\-]*).*/\1/; s/-[0-9]$//'}}
@@ -16,7 +16,7 @@
#ifs=() { summary=`{cat $f/index.md | crop_text 1024 ... | $formatter } }
ifs=() { summary=`{cat $f/index.md | strip_title_from_md_file | ifs=$difs {$formatter} } }
}
-updated = `{date -t} # date -t is 9front/9base only
+updated = `{datet}
%}
<feed xmlns="http://www.w3.org/2005/Atom"