CodeCooker17 commented on code in PR #19265:
URL: https://github.com/apache/doris/pull/19265#discussion_r1185874483


##########
fe/fe-common/src/test/java/org/apache/doris/common/property/PropertySchemaTest.java:
##########
@@ -244,8 +246,8 @@ public void testDatePropInvalidString() {
         exceptionRule.expect(IllegalArgumentException.class);
         exceptionRule.expectMessage(Matchers.containsString("Invalid time 
format"));
 
-        PropertySchema.DateProperty prop = new 
PropertySchema.DateProperty("key", new SimpleDateFormat("yyyy-MM-dd "
-                + "HH:mm:ss"));
+        PropertySchema.DateProperty prop = new 
PropertySchema.DateProperty("key", DateTimeFormatter.ofPattern("yyyy-MM-dd "
+            + "HH:mm:ss").withZone(ZoneId.systemDefault()));

Review Comment:
   @morningman thanks your time, i have solve these problems.



-- 
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: commits-unsubscr...@doris.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to