Skip to content

Commit

Permalink
Function Date must be aware of time zone
Browse files Browse the repository at this point in the history
  • Loading branch information
spannm committed Mar 1, 2024
1 parent def0729 commit ce95b6f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ static void init() {
public static final Function DATE = registerFunc(new Func0("Date") {
@Override
protected Value eval0(EvalContext ctx) {
return ValueSupport.toValue(LocalDate.now());
return ValueSupport.toValue(LocalDate.now(ctx.getZoneId()));
}
});

Expand Down

0 comments on commit ce95b6f

Please sign in to comment.