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:
1 parent
50f21af724
commit
cda4433d99
1 file changed
+2
-2
@@ -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