Skip to content

Commit

Permalink
fix locale for monthName/dayName function
Browse files Browse the repository at this point in the history
Signed-off-by: panguixin <panguixin@bytedance.com>
  • Loading branch information
bugmakerrrrrr committed May 18, 2024
1 parent 1985459 commit 5d4da1f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1390,7 +1390,7 @@ private ExprValue exprDateTimeNoTimezone(ExprValue dateTime) {
*/
private ExprValue exprDayName(ExprValue date) {
return new ExprStringValue(
date.dateValue().getDayOfWeek().getDisplayName(TextStyle.FULL, Locale.getDefault()));
date.dateValue().getDayOfWeek().getDisplayName(TextStyle.FULL, Locale.ENGLISH));
}

/**
Expand Down Expand Up @@ -1656,7 +1656,7 @@ private ExprValue exprMonth(ExprValue date) {
*/
private ExprValue exprMonthName(ExprValue date) {
return new ExprStringValue(
date.dateValue().getMonth().getDisplayName(TextStyle.FULL, Locale.getDefault()));
date.dateValue().getMonth().getDisplayName(TextStyle.FULL, Locale.ENGLISH));
}

private LocalDate parseDatePeriod(Integer period) {
Expand Down

0 comments on commit 5d4da1f

Please sign in to comment.