Skip to content

Commit

Permalink
apacheGH-37984: [Release] Use ISO 8601 format for YAML date value
Browse files Browse the repository at this point in the history
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: apache/arrow-site#408
  • Loading branch information
kou committed Oct 3, 2023
1 parent 7667b81 commit 7189615
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dev/release/post-03-website.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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'
Expand Down

0 comments on commit 7189615

Please sign in to comment.