mirror of
https://github.com/PikaMug/Quests.git
synced 2024-11-21 18:15:32 +01:00
Adhere to ISO 8601, fixes #2130
This commit is contained in:
parent
162db479d2
commit
6c15c41d97
@ -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);
|
||||
|
@ -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]);
|
||||
|
Loading…
Reference in New Issue
Block a user