Skip to content

Commit d9a7034

Browse files
authored
Update build-tag-push-ecr.sh merge_time in utc
Update build-tag-push-ecr.sh merge_time in utc PLAT-4232
1 parent aa8da0d commit d9a7034

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

scripts/build-tag-push-ecr.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ fi
3333
GIT_TAG=$(git describe --tags --first-parent --always)
3434
# Cleaning the commit message to remove special characters
3535
COMMIT_MSG=$(echo $COMMIT_MESSAGE | tr '\n' ' ' | tr -dc '[:alnum:]- ' | cut -c1-50)
36-
# Gets merge time to main
37-
MERGE_TIME=$(git log -1 --format=%cd --date=format:'%Y-%m-%d %H:%M:%S')
36+
# Gets merge time to main - displaying it in UTC timezone
37+
MERGE_TIME=$(TZ=UTC0 git log -1 --format=%cd --date=format:'%Y-%m-%d %H:%M:%S')
3838

3939
# Sanitise commit message and search for canary deployment instructions
4040
MSG=$(echo $COMMIT_MESSAGE | tr '\n' ' ' | tr '[:upper:]' '[:lower:]')

0 commit comments

Comments
 (0)