kaka11chen commented on code in PR #19265:
URL: https://github.com/apache/doris/pull/19265#discussion_r1187497956
##########
fe/fe-core/src/main/java/org/apache/doris/common/util/TimeUtils.java:
##########
@@ -305,4 +314,11 @@ public static LocalDateTime
formatDateTimeAndFullZero(String datetime, DateTimeF
LocalTime.of(hour, minute, second, milliSecond * 1000000));
}
+ private static String formatDateStr(String dateStr) {
+ String[] parts = dateStr.trim().split("[ :-]+");
+ return String.format("%s-%02d-%02d%s", parts[0],
Integer.parseInt(parts[1]), Integer.parseInt(parts[2]),
+ parts.length > 3 ? String.format(" %02d:%02d:%02d",
Integer.parseInt(parts[3]),
+ Integer.parseInt(parts[4]),
Integer.parseInt(parts[5])) : "");
+ }
+
Review Comment:
ok
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]