From d2ba5004f088b0bae86d73021ce5f8a3fdad9077 Mon Sep 17 00:00:00 2001 From: khm Date: Wed, 12 Feb 2020 08:17:07 -0800 Subject: [PATCH] commit-tree: switch to date -u removes GNUish %z thing, nails timezones to UTC --- commit-tree | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/commit-tree b/commit-tree index bde1ed9..35a03f9 100755 --- a/commit-tree +++ b/commit-tree @@ -33,9 +33,8 @@ then fi GIT_COMMITTER_NAME=${GIT_COMMITTER_NAME:-$GIT_AUTHOR_NAME} GIT_COMMITTER_EMAIL=${GIT_COMMITTER_EMAIL:-$GIT_AUTHOR_EMAIL} -# XXX: GNUism -GIT_AUTHOR_DATE=${GIT_AUTHOR_DATE:-$(date +'%s %z')} -GIT_COMMITTER_DATE=${GIT_COMMITTER_DATE:-$(date +'%s %z')} +GIT_AUTHOR_DATE=${GIT_AUTHOR_DATE:-$(date -u +'%s +0000')} +GIT_COMMITTER_DATE=${GIT_COMMITTER_DATE:-$(date -u +'%s +0000')} printf "tree %s\n" "$tree" for parent in $parents -- 2.45.2