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.
This commit is contained in:
tastytea 2019-09-21 22:41:04 +02:00
parent 649c074a18
commit d69b8b06fa
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07
1 changed files with 2 additions and 2 deletions

View File

@ -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|<link/>|<link>https://example.com/</link>|' > /var/www/feed.rss`
`remwharead -e rss -T $(date -d "-1 week" -I),$(date -Iminutes) | sed 's|<link/>|<link>https://example.com/</link>|' > /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 -
----
====