From 71896158182952f14443639f927632100655ce60 Mon Sep 17 00:00:00 2001 From: Sutou Kouhei Date: Tue, 3 Oct 2023 09:20:33 +0900 Subject: [PATCH] GH-37984: [Release] Use ISO 8601 format for YAML date value If we use ISO 8601 format for date value, we can use the value as a `Date` object in Jekyll. It's easy to reuse. Use case: https://github.com/apache/arrow-site/pull/408 --- dev/release/post-03-website.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dev/release/post-03-website.sh b/dev/release/post-03-website.sh index faf79625952cc..cb605aee83523 100755 --- a/dev/release/post-03-website.sh +++ b/dev/release/post-03-website.sh @@ -58,6 +58,7 @@ fi export TZ=UTC release_date=$(LC_TIME=C date "+%-d %B %Y") +release_date_iso8601=$(LC_TIME=C date "+%Y-%m-%d") previous_tag_date=$(git log -n 1 --pretty=%aI apache-arrow-${previous_version}) rough_previous_release_date=$(date --date "${previous_tag_date}" +%s) rough_release_date=$(date +%s) @@ -257,7 +258,7 @@ current: number: '${version}' pinned_number: '${pinned_version}' major_number: '${major_version}' - date: '${release_date}' + date: '${release_date_iso8601}' git-tag: '${git_tag_hash}' github-tag-link: 'https://github.com/apache/arrow/releases/tag/${git_tag}' release-notes: 'https://arrow.apache.org/release/${version}.html'