diff --git a/bb.sh b/bb.sh index 67886d3..3a39af8 100755 --- a/bb.sh +++ b/bb.sh @@ -511,8 +511,8 @@ make_rss() { echo '' >> "$rssfile" echo ''$global_title''$global_url'' >> "$rssfile" echo ''$global_description'en' >> "$rssfile" - echo ''$(date -R)'' >> "$rssfile" - echo ''$(date -R)'' >> "$rssfile" + echo ''$(date +"%a, %d %b %Y %H:%M:%S %z")'' >> "$rssfile" + echo ''$(date +"%a, %d %b %Y %H:%M:%S %z")'' >> "$rssfile" echo '' >> "$rssfile" n=0 @@ -528,7 +528,7 @@ make_rss() { echo "]]>$global_url/$i" >> "$rssfile" echo "$global_url/$i" >> "$rssfile" echo "$global_author" >> "$rssfile" - echo ''$(date -r "$i" -R)'' >> "$rssfile" + echo ''$(date -r "$i" +"%a, %d %b %Y %H:%M:%S %z")'' >> "$rssfile" n=$(( $n + 1 )) done @@ -625,7 +625,7 @@ rebuild_all_entries() { awk '//, //{if (!// && !//) print}' "$i" >> "$contentfile" # Original post timestamp - timestamp="$(date -R -r $i)" + timestamp="$(date -r $i +"%a, %d %b %Y %H:%M:%S %z" )" create_html_page "$contentfile" "$i.rebuilt" no "$title" "$timestamp" # keep the original timestamp!