From 2670d3fde00e5e9eed187135e853f273763cab02 Mon Sep 17 00:00:00 2001 From: Andy Goldschmidt <146747225+angold5@users.noreply.github.com> Date: Thu, 25 Apr 2024 10:39:58 +0100 Subject: [PATCH] Update build-tag-push-ecr.sh --- scripts/build-tag-push-ecr.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/build-tag-push-ecr.sh b/scripts/build-tag-push-ecr.sh index 40f2fc9..98c5a40 100755 --- a/scripts/build-tag-push-ecr.sh +++ b/scripts/build-tag-push-ecr.sh @@ -34,7 +34,7 @@ GIT_TAG=$(git describe --tags --first-parent --always) # Cleaning the commit message to remove special characters COMMIT_MSG=$(echo $COMMIT_MESSAGE | tr '\n' ' ' | tr -dc '[:alnum:]- ' | cut -c1-50) # Gets merge time to main - displaying it in UTC timezone -MERGE_TIME=$(TZ=UTC0 git log -1 --format=%cd --date=format:'%Y-%m-%d %H:%M:%S') +MERGE_TIME=$(TZ=UTC0 git log -1 --format=%cd --date=format-local:'%Y-%m-%d %H:%M:%S') # Sanitise commit message and search for canary deployment instructions MSG=$(echo $COMMIT_MESSAGE | tr '\n' ' ' | tr '[:upper:]' '[:lower:]')