Correct month prompt from requesting year in Planner

This commit is contained in:
PikaMug 2020-11-07 00:21:00 -05:00
parent e6bf2b4a8a
commit 5b31dcaded

View File

@ -53,6 +53,14 @@ public class DateTimePrompt extends QuestsEditorNumericPrompt {
public String getDataText(final ConversationContext context) {
String dateData = "";
if (context.getSessionData("tempYear") == null
|| context.getSessionData("tempMonth") == null
|| context.getSessionData("tempDay") == null
|| context.getSessionData("tempHour") == null
|| context.getSessionData("tempMinute") == null
|| context.getSessionData("tempSecond") == null) {
return dateData;
}
final Calendar cal = Calendar.getInstance();
final SimpleDateFormat dateFormat = new SimpleDateFormat("dd/MM/yyyy");
final SimpleDateFormat timeFormat = new SimpleDateFormat("HH:mm:ss");
@ -332,7 +340,7 @@ public class DateTimePrompt extends QuestsEditorNumericPrompt {
@Override
public String getQueryText(final ConversationContext context) {
return Lang.get("dateCreateEnterYear");
return Lang.get("dateCreateEnterMonth");
}
@Override