From ce95b6f4fbf0666a9b2a089d0dc55b85958ee305 Mon Sep 17 00:00:00 2001 From: Markus Spann Date: Fri, 1 Mar 2024 16:56:29 +0100 Subject: [PATCH] Function Date must be aware of time zone --- .../github/spannm/jackcess/impl/expr/DefaultDateFunctions.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/io/github/spannm/jackcess/impl/expr/DefaultDateFunctions.java b/src/main/java/io/github/spannm/jackcess/impl/expr/DefaultDateFunctions.java index b12b309..09ea358 100644 --- a/src/main/java/io/github/spannm/jackcess/impl/expr/DefaultDateFunctions.java +++ b/src/main/java/io/github/spannm/jackcess/impl/expr/DefaultDateFunctions.java @@ -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())); } });