IDEMPIERE-5403 : Misleading error message on TimeUtil.getDay(int, int, int) (#1460)
https://idempiere.atlassian.net/browse/IDEMPIERE-5403
This commit is contained in:
parent
f22d2a512f
commit
537cb8b9b8
|
@ -79,7 +79,7 @@ public class TimeUtil
|
||||||
if (month < 1 || month > 12)
|
if (month < 1 || month > 12)
|
||||||
throw new IllegalArgumentException("Invalid Month: " + month);
|
throw new IllegalArgumentException("Invalid Month: " + month);
|
||||||
if (day < 1 || day > 31)
|
if (day < 1 || day > 31)
|
||||||
throw new IllegalArgumentException("Invalid Day: " + month);
|
throw new IllegalArgumentException("Invalid Day: " + day);
|
||||||
GregorianCalendar cal = new GregorianCalendar (year, month-1, day);
|
GregorianCalendar cal = new GregorianCalendar (year, month-1, day);
|
||||||
return new Timestamp (cal.getTimeInMillis());
|
return new Timestamp (cal.getTimeInMillis());
|
||||||
} // getDay
|
} // getDay
|
||||||
|
|
Loading…
Reference in New Issue