I'm having trouble formatting dates using Java on the Macintosh using
Java 1.4.2 on Tiger.
The problem is that on my system the default locale reports "English
(United States)" whereas I expected it to be "English (United
Kingdom)", as I am in the UK. The difference for date formatting is
that the dates and months get mixed up. e.g. "05/06/07" is 5th June
2007 in the UK but 6th May 2007 in the US.
I've checked the "System Preferences" application and under the
"Formats" tab it is correctly set for the "Region:" to be "United
Kingdom".
Under "Date and Time" in "System Preferences" the date is correctly
shown using the UK format.
According to the Java Docs for the java.util.Locale class it is the
responsibility of the JVM to set up the default Locale when the JVM
is started:
So, is this a bug in Apple's implementation (that I should report) or
is there somewhere else in the system that I have not yet configured
for the UK.
I've searched on the apple lists from Google using "Java default
Locale site:lists.apple.com" (and other variations) but nothing
seemed to be relevant.
Any insight would be much appreciated.
Best Regards,
Ian Cheyne
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden