Skip to content
Snippets Groups Projects
Commit 4506202e authored by intrigeri's avatar intrigeri
Browse files

backupninja: do not assume English locale when using date (Closes: #465837)

parent ea9814ad
Branches
Tags
No related merge requests found
version 0.9.7 -- UNRELEASED version 0.9.7 -- UNRELEASED
backupninja changes backupninja changes
. fix bug in reportspace, thanks Dan Garthwaite . fix bug in reportspace, thanks Dan Garthwaite
. do not assume English locale when using date (Closes: #465837)
handler changes handler changes
maildir: maildir:
. fix location of deleted_on file . fix location of deleted_on file
......
...@@ -98,7 +98,7 @@ function printmsg() { ...@@ -98,7 +98,7 @@ function printmsg() {
function logmsg() { function logmsg() {
if [ -w "$logfile" ]; then 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 fi
} }
...@@ -200,9 +200,9 @@ function toint() { ...@@ -200,9 +200,9 @@ function toint() {
# we grab the current time once, since processing # we grab the current time once, since processing
# all the configs might take more than an hour. # all the configs might take more than an hour.
nowtime=`date +%H` nowtime=`LC_ALL=C date +%H`
nowday=`date +%d` nowday=`LC_ALL=C date +%d`
nowdayofweek=`date +%A` nowdayofweek=`LC_ALL=C date +%A`
nowdayofweek=`tolower "$nowdayofweek"` nowdayofweek=`tolower "$nowdayofweek"`
function isnow() { function isnow() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment