diff --git a/bb.sh b/bb.sh index 94a3de1..edc2de9 100755 --- a/bb.sh +++ b/bb.sh @@ -813,8 +813,8 @@ make_rss() { echo '' >> "$rssfile" echo ''$global_title''$global_url'' >> "$rssfile" echo ''$global_description'en' >> "$rssfile" - echo ''$(date +"%a, %d %b %Y %H:%M:%S %z")'' >> "$rssfile" - echo ''$(date +"%a, %d %b %Y %H:%M:%S %z")'' >> "$rssfile" + echo ''$(LC_ALL=$date_locale date +"%a, %d %b %Y %H:%M:%S %z")'' >> "$rssfile" + echo ''$(LC_ALL=$date_locale date +"%a, %d %b %Y %H:%M:%S %z")'' >> "$rssfile" echo '' >> "$rssfile" n=0 @@ -829,7 +829,7 @@ make_rss() { echo "]]>$global_url/$i" >> "$rssfile" echo "$global_url/$i" >> "$rssfile" echo "$global_author" >> "$rssfile" - echo ''$(date -r "$i" +"%a, %d %b %Y %H:%M:%S %z")'' >> "$rssfile" + echo ''$(LC_ALL=$date_locale date -r "$i" +"%a, %d %b %Y %H:%M:%S %z")'' >> "$rssfile" n=$(( $n + 1 )) done @@ -1054,7 +1054,7 @@ do_main() { chmod 600 ".backup.tar.gz" # Keep first backup of this day containing yesterday's version of the blog - [[ ! -f .yesterday.tar.gz ]] || [ "$(date -r .yesterday.tar.gz +'%d')" != "$(date +'%d')" ] && + [[ ! -f .yesterday.tar.gz ]] || [ "$(LC_ALL=$date_locale date -r .yesterday.tar.gz +'%d')" != "$(LC_ALL=$date_locale date +'%d')" ] && cp .backup.tar.gz .yesterday.tar.gz &> /dev/null [[ "$1" == "reset" ]] &&