Skip to content

Commit

Permalink
apacheGH-37984: [Release] Use ISO 8601 format for YAML date value (ap…
Browse files Browse the repository at this point in the history
…ache#37985)

### Rationale for this change

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

### What changes are included in this PR?

Use ISO 8601 format.

### Are these changes tested?

No.

### Are there any user-facing changes?

No.
* Closes: apache#37984

Authored-by: Sutou Kouhei <kou@clear-code.com>
Signed-off-by: Sutou Kouhei <kou@clear-code.com>
  • Loading branch information
kou authored and loicalleyne committed Nov 13, 2023
1 parent 2cbf378 commit d8178fd
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 d8178fd

Please sign in to comment.