Fix: date in all posts not respect date locale

This commit is contained in:
Tomasz Jadowski 2016-08-28 06:42:02 +02:00
parent e439874a69
commit 5c9290e7e5

2
bb.sh
View file

@ -652,7 +652,7 @@ all_posts() {
# Date
timestamp=$(awk '/<!-- '$date_inpost': .+ -->/ { print }' "$i" | cut -d '#' -f 2)
[[ -n $timestamp ]] && touch -t "$timestamp" "$i"
date=$(LC_ALL=C date -r "$i" +"$date_format")
date=$(LC_ALL=$date_locale date -r "$i" +"$date_format")
echo " $date</li>"
done < <(ls -t ./*.html)
echo "" 1>&3