Skip to content

Commit 9f83a84

Browse files
authored
Merge pull request #821 from github/rdelany/timezone-fix
Add -u to date command in ghe-backup-mssql to fix daylight savings bug
2 parents f89fa70 + 857a8bb commit 9f83a84

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

share/github-backup-utils/ghe-backup-mssql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ add_minute() {
4242
echo "$(date -v +$2M -ujf'%Y%m%dT%H%M%S' $1 +%Y%m%dT%H%M%S)"
4343
else
4444
dt=$1
45-
echo "$(date '+%Y%m%dT%H%M%S' -d "${dt:0:8} ${dt:9:2}:${dt:11:2}:${dt:13:2} $2 minutes")"
45+
echo "$(date -u '+%Y%m%dT%H%M%S' -d "${dt:0:8} ${dt:9:2}:${dt:11:2}:${dt:13:2} $2 minutes")"
4646
fi
4747
}
4848

0 commit comments

Comments
 (0)