This is an automated email from the ASF dual-hosted git repository.

kou pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow.git


The following commit(s) were added to refs/heads/main by this push:
     new 45588a77af GH-37984: [Release] Use ISO 8601 format for YAML date value 
(#37985)
45588a77af is described below

commit 45588a77af3548720dc64fc8ae917e469e6f106a
Author: Sutou Kouhei <[email protected]>
AuthorDate: Wed Oct 4 05:32:13 2023 +0900

    GH-37984: [Release] Use ISO 8601 format for YAML date value (#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: https://github.com/apache/arrow-site/pull/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: #37984
    
    Authored-by: Sutou Kouhei <[email protected]>
    Signed-off-by: Sutou Kouhei <[email protected]>
---
 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 faf7962595..cb605aee83 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'

Reply via email to