Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
backupninja
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
raT
backupninja
Commits
4506202e
Commit
4506202e
authored
16 years ago
by
intrigeri
Browse files
Options
Downloads
Patches
Plain Diff
backupninja: do not assume English locale when using date (Closes: #465837)
parent
ea9814ad
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
ChangeLog
+1
-0
1 addition, 0 deletions
ChangeLog
src/backupninja.in
+4
-4
4 additions, 4 deletions
src/backupninja.in
with
5 additions
and
4 deletions
ChangeLog
+
1
−
0
View file @
4506202e
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
...
...
This diff is collapsed.
Click to expand it.
src/backupninja.in
+
4
−
4
View file @
4506202e
...
@@ -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
()
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment