Adhere to ISO 8601, fixes #2130

This commit is contained in:
PikaMug 2023-10-31 23:48:40 -04:00
parent 162db479d2
commit 6c15c41d97
2 changed files with 2 additions and 2 deletions

View File

@ -65,7 +65,7 @@ public class QuestDateTimePrompt extends QuestsEditorNumericPrompt {
return dateData;
}
final Calendar cal = Calendar.getInstance();
final SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy/dd/MM");
final SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy/MM/dd");
final SimpleDateFormat timeFormat = new SimpleDateFormat("HH:mm:ss");
cal.set(year, month, day, hour, minute, second);

View File

@ -384,7 +384,7 @@ public class QuestPlannerPrompt extends QuestsEditorNumericPrompt {
private String getPrettyDate(final String formattedDate) {
final Calendar cal = Calendar.getInstance();
final SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy/dd/MM");
final SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy/MM/dd");
final SimpleDateFormat timeFormat = new SimpleDateFormat("HH:mm:ss");
final String[] date = formattedDate.split(":");
final int day = Integer.parseInt(date[0]);