You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@arrow.apache.org by ra...@apache.org on 2023/01/27 14:34:13 UTC

[arrow] branch master updated: MINOR: [Release] Fix website date locale using LC_TIME (#33881)

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

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


The following commit(s) were added to refs/heads/master by this push:
     new 4f1d255f3d MINOR: [Release] Fix website date locale using LC_TIME (#33881)
4f1d255f3d is described below

commit 4f1d255f3dc57457e5c78d98c4b76fc523cf9961
Author: Raúl Cumplido <ra...@gmail.com>
AuthorDate: Fri Jan 27 15:34:02 2023 +0100

    MINOR: [Release] Fix website date locale using LC_TIME (#33881)
    
    ### Rationale for this change
    
    When executing the post website update `$ dev/release/post-03-website.sh 10.0.0 11.0.0` the locale on the site was wrong:
    
    ```
    $ LANG=C date "+%-d %B %Y"
    26 enero 2023
    ```
    
    ### What changes are included in this PR?
    
    The following fixed it:
    ```
    $ LANG=C LC_TIME=C date "+%-d %B %Y"
    26 January 2023
    ```
    
    ### Are these changes tested?
    
    Locally
    
    ### Are there any user-facing changes?
    
    No
    
    Lead-authored-by: Raúl Cumplido <ra...@gmail.com>
    Co-authored-by: Sutou Kouhei <ko...@cozmixng.org>
    Signed-off-by: Raúl Cumplido <ra...@gmail.com>
---
 dev/release/post-03-website.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev/release/post-03-website.sh b/dev/release/post-03-website.sh
index fda9ca3d14..faf7962595 100755
--- a/dev/release/post-03-website.sh
+++ b/dev/release/post-03-website.sh
@@ -57,7 +57,7 @@ else
 fi
 
 export TZ=UTC
-release_date=$(LANG=C date "+%-d %B %Y")
+release_date=$(LC_TIME=C date "+%-d %B %Y")
 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)