diff --git a/bb.sh b/bb.sh index 67c5179..1b9f5e6 100755 --- a/bb.sh +++ b/bb.sh @@ -152,8 +152,6 @@ global_variables() { # The locale to use for the dates displayed on screen (not for the timestamps) date_format="%B %d, %Y" date_locale="C" - # Date options which work on both BSD and GNU date variants - date_R='+%a, %d %h %Y %H:%M:%S %z' } # Prints the required google analytics code @@ -184,8 +182,7 @@ google_analytics() { # # $1 the file to edit edit() { - # timestamp="$(date -r $1 +'%Y%m%d%k%M')" - timestamp="$(stat -f "%Sm" -t '%Y%m%d%k%M' $1)" + timestamp="$(date -r $1 +'%Y%m%d%k%M')" $EDITOR "$1" touch -t $timestamp "$1" } @@ -246,11 +243,9 @@ create_html_page() { echo "$title" >> "$filename" echo '' >> "$filename" if [ "$timestamp" == "" ]; then - # echo '