Skip to content

Commit

Permalink
Improve SEL function getAsText to use Locale.US instead of the defaul…
Browse files Browse the repository at this point in the history
…t one (#1) (#62)
  • Loading branch information
jun-he committed Jul 30, 2024
1 parent 3785587 commit 774807e
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

import com.netflix.sel.visitor.SelOp;
import java.util.Arrays;
import java.util.Locale;
import org.joda.time.DateTime;

/** Wrapper class to support org.joda.time.DateTime.Property. */
Expand Down Expand Up @@ -52,7 +53,7 @@ public DateTime.Property getInternalVal() {
public SelType call(String methodName, SelType[] args) {
if (args.length == 0) {
if ("getAsText".equals(methodName)) {
return SelString.of(val.getAsText());
return SelString.of(val.getAsText(Locale.US));
} else if ("withMinimumValue".equals(methodName)) {
return SelJodaDateTime.of(val.withMinimumValue());
} else if ("withMaximumValue".equals(methodName)) {
Expand Down

0 comments on commit 774807e

Please sign in to comment.