Fix: date in all posts not respect date locale
This commit is contained in:
parent
e439874a69
commit
5c9290e7e5
1 changed files with 1 additions and 1 deletions
2
bb.sh
2
bb.sh
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue