summaryrefslogtreecommitdiff
path: root/lbu
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2008-06-15 08:52:42 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2008-06-15 08:52:42 +0000
commit0e96ae680ea409f90a5baf4a5d52aba485d1440e (patch)
treecc09f5aaa6e134b63259743aa7a092ef7fe3ce98 /lbu
parent5fc20afe2bb1d1cb17303fe16dfe3cbea7ef1c12 (diff)
downloadalpine-conf-0e96ae680ea409f90a5baf4a5d52aba485d1440e.zip
force UTC for backups
Diffstat (limited to 'lbu')
-rw-r--r--lbu2
1 files changed, 1 insertions, 1 deletions
diff --git a/lbu b/lbu
index c463afe..4b672c5 100644
--- a/lbu
+++ b/lbu
@@ -339,7 +339,7 @@ cmd_commit() {
else
lines=$(ls -1 "$mnt"/*.apkovl.tar.gz* 2>/dev/null)
if [ "$lines" = "$outfile" ]; then
- local d=$( date -r "$outfile" "+%Y%m%d%H%m%S" )
+ local d=$( date -u -r "$outfile" "+%Y%m%d%H%m%S" )
local backup=$(echo "$outfile" | sed "s/\.apkovl\.tar\.gz/.$d.tar.gz/")
vecho "Creating backup $backup"
[ -z "$DRYRUN" ] && mv "$outfile" "$backup"