mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
fix code
This commit is contained in:
@@ -37,8 +37,8 @@ public class CalendarUtilTest {
|
||||
@Test
|
||||
public void parseTest(){
|
||||
Assertions.assertThrows(IllegalArgumentException.class, ()->{
|
||||
final Calendar calendar = CalendarUtil.parse("2021-09-27 00:00:112323", false,
|
||||
DateFormatPool.NORM_DATETIME_FORMAT);
|
||||
final Calendar calendar = CalendarUtil.parse("2021-09-27 00:00:112323",
|
||||
DateFormatPool.NORM_DATETIME_FORMAT, false);
|
||||
|
||||
// https://github.com/dromara/hutool/issues/1849
|
||||
// 在使用严格模式时,秒不正确,抛出异常
|
||||
|
Reference in New Issue
Block a user