luchunliang commented on code in PR #10042:
URL: https://github.com/apache/inlong/pull/10042#discussion_r1574380297
##########
inlong-common/src/main/java/org/apache/inlong/common/pojo/sort/dataflow/field/format/DateFormatInfo.java:
##########
@@ -98,11 +99,10 @@ public String serialize(Date date) {
return Long.toString(seconds);
}
default: {
- if (simpleDateFormat == null) {
+ if (formatter == null) {
throw new IllegalStateException();
}
-
- return simpleDateFormat.format(date);
+ return date.toLocalDate().format(formatter);
Review Comment:
Date.toLocalDate is deprecated.
It is SortFlink job timezone, it is not business data timezone.
--
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]