aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorintrigeri <intrigeri@boum.org>2008-12-09 11:08:53 +0000
committerintrigeri <intrigeri@boum.org>2008-12-09 11:08:53 +0000
commit4506202ea78d5c5829113d6f2a183c540585cd5d (patch)
tree6401d5716cb9916f9f93ca681e7764e28fd7b0a8 /src
parentea9814ad2b78a7603d2b6f1b2916dc895aab9bd5 (diff)
downloadbackupninja-4506202ea78d5c5829113d6f2a183c540585cd5d.tar.gz
backupninja-4506202ea78d5c5829113d6f2a183c540585cd5d.tar.bz2
backupninja: do not assume English locale when using date (Closes: #465837)
Diffstat (limited to 'src')
-rwxr-xr-xsrc/backupninja.in8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/backupninja.in b/src/backupninja.in
index 25f4e11..6dee3b6 100755
--- a/src/backupninja.in
+++ b/src/backupninja.in
@@ -98,7 +98,7 @@ function printmsg() {
function logmsg() {
if [ -w "$logfile" ]; then
- echo -e `date "+%h %d %H:%M:%S"` "$@" >> $logfile
+ echo -e `LC_ALL=C date "+%h %d %H:%M:%S"` "$@" >> $logfile
fi
}
@@ -200,9 +200,9 @@ function toint() {
# we grab the current time once, since processing
# all the configs might take more than an hour.
-nowtime=`date +%H`
-nowday=`date +%d`
-nowdayofweek=`date +%A`
+nowtime=`LC_ALL=C date +%H`
+nowday=`LC_ALL=C date +%d`
+nowdayofweek=`LC_ALL=C date +%A`
nowdayofweek=`tolower "$nowdayofweek"`
function isnow() {