diff options
author | Carlos Bautista <carlosbm@gmail.com> | 2013-04-09 17:50:03 +0200 |
---|---|---|
committer | Carlos Bautista <carlosbm@gmail.com> | 2013-04-09 17:53:38 +0200 |
commit | 35e5843273239e730bd9c359883decc86bea30c4 (patch) | |
tree | 651844828f40ae89b2a0db34a740dbe497dafa4d /bb.sh | |
parent | 5ff62fefe906bf9795a8a1e4845863a73c098bd0 (diff) |
date: changed %k switch to %H.
The former inserts padding spaces when hour is under 10
Diffstat (limited to 'bb.sh')
-rwxr-xr-x | bb.sh | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -227,7 +227,7 @@ if [ "$global_disqus" != "" ]; then # # $1 the file to edit edit() { - timestamp="$(date -r $1 +'%Y%m%d%k%M')" + timestamp="$(date -r $1 +'%Y%m%d%H%M')" $EDITOR "$1" touch -t $timestamp "$1" } @@ -623,7 +623,7 @@ rebuild_all_entries() { create_html_page "$contentfile" "$i.rebuilt" no "$title" "$timestamp" # keep the original timestamp! - timestamp="$(date -r $i +'%Y%m%d%k%M')" + timestamp="$(date -r $i +'%Y%m%d%H%M')" mv "$i.rebuilt" "$i" chmod 644 "$i" touch -t $timestamp "$i" |