[MC-5820] The game doesn't recognise the ISO 8601 date format Created: 03/Jan/13  Updated: 27/Jun/24  Resolved: 27/Jun/24

Status: Resolved
Project: Minecraft: Java Edition
Component/s: None
Affects Version/s: Minecraft 1.4.6, Minecraft 1.4.7, Snapshot 13w01a, Minecraft 1.5, Snapshot 13w11a, Minecraft 1.5.1, Minecraft 1.7.4, Minecraft 14w02b, Minecraft 14w02c, Minecraft 14w18b, Minecraft 1.8, Minecraft 1.8.1-pre3, Minecraft 1.8.2-pre6, Minecraft 1.10.2, Minecraft 1.11.2, Minecraft 17w14a, Minecraft 1.12.2, Minecraft 1.13, Minecraft 18w33a, Minecraft 1.13.2, Minecraft 18w45a, Minecraft 18w46a, Minecraft 18w47a, Minecraft 18w47b, Minecraft 18w48a, Minecraft 18w48b, Minecraft 18w49a, Minecraft 18w50a, Minecraft 19w02a, Minecraft 19w03c, Minecraft 19w04a, Minecraft 19w05a, Minecraft 19w06a, Minecraft 19w07a, Minecraft 19w08b, Minecraft 19w09a, Minecraft 19w11a, Minecraft 19w12a, Minecraft 19w12b, Minecraft 19w13a, Minecraft 19w13b, Minecraft 19w14a, Minecraft 19w14b, Minecraft 1.14 Pre-Release 2, Minecraft 1.14 Pre-Release 4, Minecraft 1.14 Pre-Release 5, Minecraft 1.14.2 Pre-Release 3, Minecraft 1.14.2 Pre-Release 4, Minecraft 1.14.3 Pre-Release 3, Minecraft 1.14.3 Pre-Release 4, Minecraft 1.14.4 Pre-Release 1, Minecraft 1.14.4 Pre-Release 4, 19w35a, 19w36a, 19w37a, 19w38b, 19w39a, 19w40a, 19w41a, 19w42a, 19w44a, 19w45a, 19w46a, 1.15 Pre-release 1, 1.15 Pre-Release 2, 1.15 Pre-release 3, 1.15 Pre-release 4, 1.15 Pre-release 5, 1.15 Pre-release 6, 1.15 Pre-release 7, 1.15.1 Pre-release 1, 1.15.2 Pre-Release 1, 1.15.2 Pre-release 2, 20w06a, 20w07a, 20w08a, 20w09a, 20w10a, 20w11a, 20w12a, 20w13a, 20w15a, 20w18a, 20w20a, 20w21a, 20w22a, 1.16 Pre-release 2, 1.16 Pre-release 3, 1.16 Pre-release 4, 1.16 Pre-release 5, 1.16 Pre-release 6, 1.16 Pre-release 7, 20w27a, 20w28a, 20w29a, 20w30a, 1.16.2 Pre-release 1, 1.16.2 Pre-release 2, 1.16.2 Pre-release 3, 21w03a, 21w06a, 21w08a, 21w18a, 21w19a, 21w20a, 1.17 Pre-release 1, 1.17.1, 21w37a, 21w39a, 1.20.4, 24w05b
Fix Version/s: 23w42a

Type: Bug
Reporter: Connor Steppie Assignee: Unassigned
Resolution: Fixed Votes: 28
Labels: formatting
Environment:

Windows 7 Home Premium w/ Java 7


Attachments: PNG File 2021-05-12_12.14.28.png     PNG File 2021-05-12_12.15.20.png     PNG File 2021-05-12_12.15.43.png     PNG File Capture1.PNG     PNG File Capture2.PNG     PNG File Screen Shot 2015-01-01 at 13.00.39.png     PNG File Screen Shot 2015-01-01 at 13.02.35.png     PNG File mc-1.19.4_date_bug.png    
Issue Links:
Duplicate
is duplicated by MC-115414 Type date and time in world selector ... Resolved
CHK:
Confirmation Status: Confirmed
Category:
UI
Mojang Priority: Low
Area: Platform

 Description   

The bug

In the singleplayer world select screen, if your system date is set to ISO 8601 format (YYYY-MM-DD) it will display the dates as mm/dd/yyyy instead of the desired format.



 Comments   
Comment by [Mojang] etanaratsastaja [ 26/Jun/24 ]

Is this still an issue? I can't reproduce this on my machines.

Comment by user-f2760 (Inactive) [ 19/Aug/23 ]

JIRA is not software that Mojang develops, they merely use it.

Comment by Twisted Code [ 19/Aug/23 ]

I've been trying to migrate my stuff to ISO 8601 ever since I read the XKCD comic/PSA about it.

On a tangentially related note, can y'all standardize This Very Mojira™'s date format next? I just posted on a bug that's still haunting us from 10 years ago, and had to do a double take to make sure I didn't misinterpret the year.

(I can put this aside into an issue of its own if that helps, just tell me what section/tags/whatever, I don't use JIRA much)

Comment by Graeme [ 05/Jun/23 ]

I can confirm the same bug on FreeBSD 13.1 and Ubuntu Linux using 1.19.4 and latest 1.20 pre-release.

 
In English (UK) language option, the date format shows as MM/DD/YY, where it should be DD/MM/YY (or preferably DD/MM/YYYY). The date format shown can be very confusing when you're not used to it.

Steps to Reproduce:

  1. setenv LANG en_GB.UTF8
  2. Run minecraft from that same console window
  3. Set the language to English (UK) in Minecraft
  4. Go to the world selection screen
  5. Look at the date format

Observed Results:
The date format shows as MM/DD/YY.

Expected Results:
The date format should show as DD/MM/YYYY.

I even tried: `setenv LC_TIME=en_DK.UTF-8` (country that uses ISO 8601 date format), and other applications like Thunderbird (email) shows the date format changed, but Minecraft still only displays the dates in United States format.

 

Comment by user33 [ 24/May/23 ]

Can confirm in 1.20-pre5

Comment by user-f2760 (Inactive) [ 13/Oct/22 ]

To be a bit more clear, this project (MC) is for Java Edition only, Bedrock edition is MCPE.

Comment by [Mod] ampolive [ 13/Oct/22 ]

1.19.31 is Bedrock Edition, this bug tracker is for the Java Edition of the game only.

Comment by Cries [ 12/Oct/22 ]

I'm playing on v1.19.31 on PC with my computer set to DD/MM/YY format yet the world selector menu confusingly displays the date in MM/DD/YY format.

How has this still not been fixed years later when the vast, vast majority of the world doesn't use MM/DD/YY, including the developers of the game themselves?

Comment by Ely G [ 12/May/21 ]

The title of this bug should be changed to match that of MC-115414, because as of 21w19a the game actually does recognise the ISO 8601 date format! However, the time settings on my computer are 24 hour time, and the game still displays the time in 12 hour format.

Comment by Ely G [ 27/Sep/19 ]

My dates display as dd/mm/yy instead of ISO 8601

Comment by [Mod] Asteraoth [ 05/Dec/18 ]

Changed the reporter to Awesoman3000.

Comment by Connor Steppie [ 05/Dec/18 ]

Affects 18w49a

Comment by Connor Steppie [ 30/Nov/18 ]

Affects 18w48b, can I request ownership of the ticket?

Comment by Connor Steppie [ 29/Nov/18 ]

Affects 18w48a

Comment by Connor Steppie [ 25/Nov/18 ]

Affects 18w47b

Comment by Connor Steppie [ 21/Nov/18 ]

Affects 18w47a

Comment by Connor Steppie [ 18/Nov/18 ]

Affects 18w46a

Comment by Ely G [ 15/Aug/18 ]

Can confirm for 1.13 and 18w33a. I use ISO 8601 format and 24 hour time on my Windows 10 PC, but Minecraft displays the dates and times as dd/mm/yy and 12 hour time.

Comment by [Mod] Michael Wobst [ 17/Jan/18 ]

Splarta, the ticket is yours now. You can update the list of affected versions yourself now. Maybe you can check it with the latest development snapshot if you're familiar with these.

Comment by Hops Splurt [ 17/Jan/18 ]

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.

Comment by [Mod] Michael Wobst [ 16/Jan/18 ]

Is this still an issue in the most recent versions (currently that is 1.12.2, or 18w02a) of Minecraft? If so, please update the affected versions and help us keeping this ticket updated from time to time. If you are the owner/reporter of this ticket, you can modify the affected version(s) yourself.

Comment by user33 [ 06/Apr/17 ]

Confirmed for 17w14a

Comment by bdm68 [ 13/Mar/17 ]

Still an issue with 1.11.2. Date printing in US format on non-US locales.

Comment by Hops Splurt [ 03/Nov/16 ]

Yes, this is still an issue with 1.10.2.

Comment by [Mod] Michael Wobst [ 02/Nov/16 ]

Is this still an issue in the most recent versions (currently that is 1.10.2, or 16w43a) of Minecraft? If so, please update the affected versions and help us keeping this ticket updated from time to time. If you are the owner/reporter of this ticket, you can modify the affected version(s) yourself.

Comment by Hops Splurt [ 01/Jan/15 ]

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.

Comment by Hops Splurt [ 01/Jan/15 ]

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.

Comment by Hops Splurt [ 01/Jan/15 ]

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.

Comment by Hops Splurt [ 01/Jan/15 ]

Screen shot of World Selection screen showing the undesired date format.
(Minecraft 1.8.1, any Java version)

Comment by Deleted account [ 30/Apr/14 ]

Is this still a concern in the current Minecraft version 1.7.9 / Launcher version 1.3.11 or later? If so, please update the affected versions in order to best aid Mojang ensuring bugs are still valid in the latest releases/pre-releases.

Comment by [Mod] Ezekiel (ezfe) [ 26/Feb/14 ]

Is this still a concern in the latest Minecraft version 14w08a? If so, please update the affected versions in order to best aid Mojang ensuring bugs are still valid in the latest releases/pre-releases.

Comment by [Mod] Torabi [ 11/Jan/14 ]

I can confirm that this issue exists in the current snapshot (14w02c).

I am using "yyyy-MM-dd" for my short date format, and "H:mm" for short time, but the Minecraft world selection screen displays the last saved time in the format "mm/dd/yy H:mm tt". So it's not respecting system settings for date and time formats, which could be particularly confusing to users in regions where the day is listed before the month.

Comment by [Mod] Ezekiel (ezfe) [ 11/Jan/14 ]

This ticket is incomplete without the requested information, no response has been received within a reasonable time and we are assuming the issue has been resolved. Should your issue return please submit a new complete ticket with all available information.
Please review the guidelines before reporting issues.

Comment by Talven81 [ 26/Nov/13 ]

Is this still a concern in the current Minecraft version 1.7.2 / Launcher version 1.3.4 ? If so, please update the affected versions in order to best aid Mojang ensuring bugs are still valid in the latest releases/pre-releases.

Comment by dirk (switched to Minetest) [ 20/Mar/13 ]

Confirmed for 1.5.1-pre on Linux.

$ java -version
java version "1.7.0_17"
OpenJDK Runtime Environment (IcedTea7 2.3.8) (ArchLinux build 7.u17_2.3.8-1-x86_64)
OpenJDK 64-Bit Server VM (build 23.7-b01, mixed mode)

$ uname -rms
Linux 3.7.10-1-ARCH x86_64

$ echo $LC_DATE
en_DK.utf8

(en_DK defines ISO-8601 date and time representation)

Comment by Tails [ 03/Jan/13 ]

Please do not mark unreleased versions as affected. You do not have access to this yet.

Generated at Sun Jan 12 12:09:10 UTC 2025 using Jira 9.12.2#9120002-sha1:301bf498dd45d800842af0b84230f1bb58606c13.