aiwenmo commented on code in PR #3863:
URL: https://github.com/apache/flink-cdc/pull/3863#discussion_r1917914704


##########
flink-cdc-runtime/src/main/java/org/apache/flink/cdc/runtime/functions/SystemFunctionUtils.java:
##########
@@ -105,6 +105,13 @@ public static String dateFormat(TimestampData timestamp, 
String format) {
                 timestamp.getMillisecond(), format, 
TimeZone.getTimeZone("UTC"));
     }
 
+    public static String dateFormat(LocalZonedTimestampData timestamp, String 
format) {
+        return DateTimeUtils.formatTimestampMillis(
+                timestamp.getEpochMillisecond(),
+                format,
+                TimeZone.getTimeZone(ZoneId.systemDefault()));
+    }

Review Comment:
   In the YAML job, the default time zone needs to be fetched from the pipeline 
configuration instead of the system default time zone.



-- 
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: issues-unsubscr...@flink.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to