From cda4433d99b76cb54b0d9aff0d0822e890781456 Mon Sep 17 00:00:00 2001 From: vince538 <39571654+vince538@users.noreply.github.com> Date: Fri, 10 Aug 2018 17:55:38 +0200 Subject: [PATCH] Fix for receiving items with duey (#240) Fix for receiving items on the 9th of the month and 9th month of the year. --- src/client/processor/DueyProcessor.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/client/processor/DueyProcessor.java b/src/client/processor/DueyProcessor.java index 9b694c7e67..b6ffb987e6 100644 --- a/src/client/processor/DueyProcessor.java +++ b/src/client/processor/DueyProcessor.java @@ -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;