mirror of
https://0xacab.org/liberate/backupninja.git
synced 2024-11-08 20:02:32 +01:00
backupninja: do not assume English locale when using date (Closes: #465837)
This commit is contained in:
parent
ea9814ad2b
commit
4506202ea7
@ -1,6 +1,7 @@
|
||||
version 0.9.7 -- UNRELEASED
|
||||
backupninja changes
|
||||
. fix bug in reportspace, thanks Dan Garthwaite
|
||||
. do not assume English locale when using date (Closes: #465837)
|
||||
handler changes
|
||||
maildir:
|
||||
. fix location of deleted_on file
|
||||
|
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user