From d69b8b06fa5d823e244bf5cd1e6a667ebd8253c3 Mon Sep 17 00:00:00 2001 From: tastytea Date: Sat, 21 Sep 2019 22:41:04 +0200 Subject: [PATCH] Fix `date` call in examples in manpage. The default precision of `date -I` is day, implying the time "00:00:00". The current day would be left out. --- man/remwharead.1.adoc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/man/remwharead.1.adoc b/man/remwharead.1.adoc index 71cfd32..63419f7 100644 --- a/man/remwharead.1.adoc +++ b/man/remwharead.1.adoc @@ -97,7 +97,7 @@ Print version, copyright and license. .Export all things from the last week to an RSS feed. ==== -`remwharead -e rss -T $(date -d "-1 week" -I),$(date -I) | sed 's||https://example.com/|' > /var/www/feed.rss` +`remwharead -e rss -T $(date -d "-1 week" -I),$(date -Iminutes) | sed 's||https://example.com/|' > /var/www/feed.rss` ==== === Display database @@ -109,7 +109,7 @@ can periodically generate an HTML file with cron and display it in the browser. ==== [source,crontab] ---- -*/30 * * * * remwharead -e asciidoc -T $(date -d "-6 months" -I),$(date -I) | asciidoctor --backend=html5 --out-file=${HOME}/remwharead.html - +*/30 * * * * remwharead -e asciidoc -T $(date -d "-6 months" -I),$(date -Iminutes) | asciidoctor --backend=html5 --out-file=${HOME}/remwharead.html - ---- ====