Skip to content

Commit 1f0e710

Browse files
committed
use correct timezone name
Signed-off-by: xinyual <xinyual@amazon.com>
1 parent 920f711 commit 1f0e710

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/main/java/org/opensearch/sql/expression/datetime/DateTimeFunctions.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1332,7 +1332,7 @@ public static ExprValue exprDateDiff(
13321332
* @return ExprValue of date type.
13331333
*/
13341334
public static ExprValue exprDateTime(ExprValue timestamp, ExprValue timeZone) {
1335-
String defaultTimeZone = TimeZone.getDefault().getID();
1335+
String defaultTimeZone = TimeZone.getDefault().toZoneId().toString();
13361336

13371337
try {
13381338
LocalDateTime ldtFormatted =

0 commit comments

Comments
 (0)