fix firstday

This commit is contained in:
Looly 2021-09-28 01:22:26 +08:00
parent 0ff44155c7
commit aaaf2b7f03

View File

@ -1040,6 +1040,9 @@ public class DateTime extends Date {
if (null == calendar) {
throw new DateException("Parse [{}] with format [{}] error!", dateStr, parser.getPattern());
}
//noinspection MagicConstant
calendar.setFirstDayOfWeek(Week.MONDAY.getValue());
return calendar;
}