From e7a9093d65d407e550e04317accf06e030434eb5 Mon Sep 17 00:00:00 2001 From: Robert Stepanek Date: Wed, 15 Feb 2017 10:18:15 +0100 Subject: [PATCH] Use date_locale to determine edit timestamp during rebuild --- bb.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bb.sh b/bb.sh index 9136503..186f383 100755 --- a/bb.sh +++ b/bb.sh @@ -283,7 +283,7 @@ get_html_file_content() { edit() { [[ ! -f "${1%%.*}.html" ]] && echo "Can't edit post "${1%%.*}.html", did you mean to use \"bb.sh post \"?" && exit -1 # Original post timestamp - edit_timestamp=$(LC_ALL=C date -r "${1%%.*}.html" +"$date_format_full" ) + edit_timestamp=$(LC_ALL=$date_locale date -r "${1%%.*}.html" +"$date_format_full" ) touch_timestamp=$(LC_ALL=C date -r "${1%%.*}.html" +"$date_format_timestamp") tags_before=$(tags_in_post "${1%%.*}.html") if [[ $2 == full ]]; then