public static Calendar parse(CharSequence str, boolean lenient, DateParser parser) {
		final Calendar calendar = Calendar.getInstance(parser.getTimeZone(), parser.getLocale());
		calendar.clear();
		calendar.setLenient(lenient);

		return parser.parse(StrUtil.str(str), new ParsePosition(0), calendar) ? calendar : null;
	}
@Test
	public void parseTest() {
		assertThrows(IllegalArgumentException.class, () -> {
			final Calendar calendar = CalendarUtil.parse("2021-09-27 00:00:112323", false,
				DatePattern.NORM_DATETIME_FORMAT);

			// https://github.com/dromara/hutool/issues/1849
			// 在使用严格模式时，秒不正确，抛出异常
			DateUtil.date(calendar);
		});
	}