]> git.treefish.org Git - broadsync.git/commitdiff
Force english locale for date command. master
authorRegina Kleinhappel <regina@treefish.org>
Sun, 13 Jul 2014 09:43:59 +0000 (11:43 +0200)
committerRegina Kleinhappel <regina@treefish.org>
Sun, 13 Jul 2014 09:43:59 +0000 (11:43 +0200)
broadsync

index 206794bac6ce1f09e4378f873ee618bc435c10db..7f8319593e68866e92e2267822e26eaa880d9503 100755 (executable)
--- a/broadsync
+++ b/broadsync
@@ -66,7 +66,7 @@ while read syncline; do
 
     if [ -f "$statdir/newestdate" ]; then
        newestdate=$(cat "$statdir/newestdate")
-       echo "Using newestdate $(date +"%T %B %d %Y" -d @$newestdate)"
+       echo "Using newestdate $(LANG=en_US date +"%T %B %d %Y" -d @$newestdate)"
     else
        newestdate=0
     fi
@@ -95,7 +95,7 @@ while read syncline; do
                    fi
                done < <(lftp -p "$syncline_port" \
                    -u "$syncline_user,$syncline_pass" \
-                   -e "mirror -v -N \"$(date +"%T %B %d %Y" -d @$newestdate)\" \"$syncline_rdir\" \"$syncline_ldir\"" \
+                   -e "mirror -v -N \"$(LANG=en_US date +"%T %B %d %Y" -d @$newestdate)\" \"$syncline_rdir\" \"$syncline_ldir\"" \
                    "$subnet$i")
 
                [ -n "$lastfile" ] && newestdate=$(returnnewer "$syncline_ldir/$lastfile" "$newestdate")