mirror of
https://github.com/PikaMug/Quests.git
synced 2024-11-09 20:31:24 +01:00
Correct month prompt from requesting year in Planner
This commit is contained in:
parent
e6bf2b4a8a
commit
5b31dcaded
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user