From 41d8ad1fd29624e3d2edc8f6244d3caaa5bfa4bb Mon Sep 17 00:00:00 2001 From: Regina Kleinhappel Date: Sun, 13 Jul 2014 11:43:59 +0200 Subject: [PATCH 1/1] Force english locale for date command. --- broadsync | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/broadsync b/broadsync index 206794b..7f83195 100755 --- 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") -- 2.39.5