Skip to content

Commit

Permalink
MINOR: [Release] Fix website date locale using LC_TIME (#33881)
Browse files Browse the repository at this point in the history
### 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 <raulcumplido@gmail.com>
Co-authored-by: Sutou Kouhei <kou@cozmixng.org>
Signed-off-by: Raúl Cumplido <raulcumplido@gmail.com>
  • Loading branch information
raulcd and kou committed Jan 27, 2023
1 parent 24da3be commit 4f1d255
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dev/release/post-03-website.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 4f1d255

Please sign in to comment.