Yes, this is still an issue with 1.10.2.
@unknown you make a good point. Edited my post accordingly.
This bug most annoyingly also affects Villagers in Minecarts. This messes up my Minecart-based villager trading hall. Often when I send a villager on its way it looks like only the minecart is moving and the villager stays behind. Not so! This is the bug in action. To avoid confusion (and possible further complications) I need to move away far enough and then come back to have the villager show up in its proper place, namely in the minecart.
This bug of course also affects other mobs in minecarts.
There appears to be a general problem at Mojang with assigning bugs to someone who will work on it. If you search for bugs that are not Resolved and order by Votes (Advanced search: Status != Resolved ORDER BY Votes) then you'll see that of the top 10 voted bugs only 3 have been assigned. Of the top 20 only 4 are assigned. Of the top 50 only 15 are assigned. This bug is currently 7th in this list.
[Edit: Pestering via youtubers is a bad idea]
Suggestion for solution to this issue:
Currently Minecraft probably uses a simple call with a fixed format (possibly using SimpleDateFormat
) to print the date/time strings in the World Selection screen.
Java (naturally) contains calls to print date/time strings in the format as defined by the current Locale. See Class Dateformat.
In particular:
from Class DateFormat
To format a date for the current Locale, use one of the static factory methods:
myString = DateFormat.getDateInstance().format(myDate);
If you are formatting multiple dates, it is more efficient to get the format and use it multiple times so that the system doesn't have to fetch the information about the local language and country conventions multiple times.
DateFormat df = DateFormat.getDateInstance();
for (int i = 0; i < myDate.length; ++i) {
output.println(df.format(myDate[i]) + "; ");
}
I believe putting code similar to the above (probably using getDateTimeInstance()
rather than getDateInstance()
) in the part of Minecraft where the World Selection screen is generated will solve the issue.
For completeness, search the code for "DateFormat" to see if date/time strings are printed anywhere else in Minecraft, and adjust if appropriate.
For completeness, here is a report that follows the guidelines.
Report:
When starting Minecraft, the World selection screen shows the dates and times when each of the worlds was last saved. These dates and times are in the wrong format.
What I expected to happen was...:
That the dates and times are shown in the format set in the locale settings of the OS, as selected by the user. See the screenshots. In my case as (e.g.)30 dec 2014 22:04
.
What actually happened was...:
Dates and times are shown in the mind-bending headache-inducing USA format. E.g. 12/30/14 10:09 PM
Steps to Reproduce:
1. Start Minecraft
2. Click "Play" in the launcher
3. Click "Singleplayer" in the splash screen
4. If you have existing worlds in Singleplayer, the "Select World" screen now lists these worlds, featuring the wrong date/time format.
5. If you do not yet have a world in Singleplayer, quickly create one, quit it and go to step 3.
Versions of Minecraft affected:
Note: I'd be happy to update the "Affected versions" field of the issue, but the system won't let me
Latest version tried: Minecraft 1.8.1
It looks like this issue has been in Minecraft since the very beginning, and has not been looked at since.
Environment:
For me currently on Mac OS 10.10.1 (Yosemite), but also seen on 10.9.5 (Mavericks)
Also: with Java 6, 7 and 8
Note that the original poster reported this for Windows 7, and there is a confirmation for Linux.
It is probably safe to assume that this issue is independent of the OS and Java environment, and the routine called to print the date/time string does not take localisation settings into account.
Mac OS Language & Region part of System Preferences. Circled are the desired date/time formats which result from the OS settings chosen by the user. The Minecraft World Selection screen does not follow these settings.
Screen shot of World Selection screen showing the undesired date format.
(Minecraft 1.8.1, any Java version)
Still unchanged in Minecraft 1.12.2
Can't find any option in the Jira interface to add this to the list of Affected Versions.