date: changed %k switch to %H.
The former inserts padding spaces when hour is under 10
This commit is contained in:
parent
5ff62fefe9
commit
35e5843273
1 changed files with 2 additions and 2 deletions
4
bb.sh
4
bb.sh
|
@ -227,7 +227,7 @@ if [ "$global_disqus" != "" ]; then
|
||||||
#
|
#
|
||||||
# $1 the file to edit
|
# $1 the file to edit
|
||||||
edit() {
|
edit() {
|
||||||
timestamp="$(date -r $1 +'%Y%m%d%k%M')"
|
timestamp="$(date -r $1 +'%Y%m%d%H%M')"
|
||||||
$EDITOR "$1"
|
$EDITOR "$1"
|
||||||
touch -t $timestamp "$1"
|
touch -t $timestamp "$1"
|
||||||
}
|
}
|
||||||
|
@ -623,7 +623,7 @@ rebuild_all_entries() {
|
||||||
|
|
||||||
create_html_page "$contentfile" "$i.rebuilt" no "$title" "$timestamp"
|
create_html_page "$contentfile" "$i.rebuilt" no "$title" "$timestamp"
|
||||||
# keep the original 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"
|
mv "$i.rebuilt" "$i"
|
||||||
chmod 644 "$i"
|
chmod 644 "$i"
|
||||||
touch -t $timestamp "$i"
|
touch -t $timestamp "$i"
|
||||||
|
|
Loading…
Add table
Reference in a new issue