mirror of
https://github.com/PikaMug/Quests.git
synced 2025-01-24 01:02:00 +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) {
|
public String getDataText(final ConversationContext context) {
|
||||||
String dateData = "";
|
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 Calendar cal = Calendar.getInstance();
|
||||||
final SimpleDateFormat dateFormat = new SimpleDateFormat("dd/MM/yyyy");
|
final SimpleDateFormat dateFormat = new SimpleDateFormat("dd/MM/yyyy");
|
||||||
final SimpleDateFormat timeFormat = new SimpleDateFormat("HH:mm:ss");
|
final SimpleDateFormat timeFormat = new SimpleDateFormat("HH:mm:ss");
|
||||||
@ -332,7 +340,7 @@ public class DateTimePrompt extends QuestsEditorNumericPrompt {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String getQueryText(final ConversationContext context) {
|
public String getQueryText(final ConversationContext context) {
|
||||||
return Lang.get("dateCreateEnterYear");
|
return Lang.get("dateCreateEnterMonth");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
Reference in New Issue
Block a user