From 0e96ae680ea409f90a5baf4a5d52aba485d1440e Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Sun, 15 Jun 2008 08:52:42 +0000 Subject: force UTC for backups --- lbu | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" -- cgit v1.2.3