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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user