alpreu commented on a change in pull request #19302:
URL: https://github.com/apache/flink/pull/19302#discussion_r840342878
##########
File path:
flink-connectors/flink-connector-elasticsearch-base/src/main/java/org/apache/flink/connector/elasticsearch/table/IndexGeneratorFactory.java
##########
@@ -186,7 +185,10 @@ private static DynamicFormatter createFormatFunction(
case TIMESTAMP_WITH_LOCAL_TIME_ZONE:
return (value, dateTimeFormatter) -> {
TimestampData indexField = (TimestampData) value;
- return
indexField.toInstant().atZone(ZoneOffset.UTC).format(dateTimeFormatter);
+ return indexField
+ .toInstant()
Review comment:
You're right, I now changed it to reuse the localTimeZoneId we pass in
there 👍
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]