projects
/
matthijs
/
upstream
/
backupninja.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
ea9814a
)
backupninja: do not assume English locale when using date (Closes: #465837)
author
intrigeri
<intrigeri@boum.org>
Tue, 9 Dec 2008 11:08:53 +0000
(11:08 +0000)
committer
intrigeri
<intrigeri@boum.org>
Tue, 9 Dec 2008 11:08:53 +0000
(11:08 +0000)
ChangeLog
patch
|
blob
|
history
src/backupninja.in
patch
|
blob
|
history
diff --git
a/ChangeLog
b/ChangeLog
index 2ca863d7869bc3648929d9ea014dca6267a8e432..d6292ec882e15084f53dfacb41b3e033255801f4 100644
(file)
--- a/
ChangeLog
+++ b/
ChangeLog
@@
-1,6
+1,7
@@
version 0.9.7 -- UNRELEASED
backupninja changes
. fix bug in reportspace, thanks Dan Garthwaite
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
handler changes
maildir:
. fix location of deleted_on file
diff --git
a/src/backupninja.in
b/src/backupninja.in
index 25f4e1140b3f8f8e6cc23a5928a9904e7a364ed3..6dee3b6163c4920a06e34f95c0e3ebe831277272 100755
(executable)
--- a/
src/backupninja.in
+++ b/
src/backupninja.in
@@
-98,7
+98,7
@@
function printmsg() {
function logmsg() {
if [ -w "$logfile" ]; then
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
}
fi
}
@@
-200,9
+200,9
@@
function toint() {
# we grab the current time once, since processing
# all the configs might take more than an hour.
# 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() {
nowdayofweek=`tolower "$nowdayofweek"`
function isnow() {