Fix for receiving items with duey (#240)

Fix for receiving items on the 9th of the month and 9th month of the year.
This commit is contained in:
vince538
2018-08-10 17:55:38 +02:00
committed by Ronan Lana
parent 50f21af724
commit cda4433d99

View File

@@ -116,8 +116,8 @@ public class DueyProcessor {
int day = cal.get(Calendar.DATE) - 1; // instant duey ?
int month = cal.get(Calendar.MONTH) + 1; // its an array of months.
int year = cal.get(Calendar.YEAR);
date += day < 9 ? "0" + day + "-" : "" + day + "-";
date += month < 9 ? "0" + month + "-" : "" + month + "-";
date += day <= 9 ? "0" + day + "-" : "" + day + "-";
date += month <= 9 ? "0" + month + "-" : "" + month + "-";
date += year;
return date;