Hello,

Take a look at http://java.sun.com/j2se/1.3/docs/api/java/text/DateFormat.html
(I just did a quick google - please verify for the java version you are on)

maybe use a different method where you can specify the format type since it 
sounds like you want it the same way regardless of locale? like:

java.text.DateFormat.getDateTimeInstance(int dateStyle, int timeStyle);

or

java.text.DateFormat.getDateTimeInstance(ine dateStyle, int timeStyle, Locale 
aLocale)


Since java.text.DateFormat.getInstance() uses the default settings for the 
locale that it's called in

hope this helps!

-Mike



----- Original Message ----
> From: A A <masvalesolo...@yahoo.es>
> To: Tomcat Users List <users@tomcat.apache.org>
> Sent: Friday, May 8, 2009 8:19:25 AM
> Subject: Re: Tomcat Language
> 
> Hello, Im working with Rafa Orteu, and we´re are having the same problem. So 
> Im 
> answering for him.
> 
> Both server have the same locale configuration for machine and user owner, 
> es_es.iso885...@euro, same time zone machine, same java version.
> 
> Even in the same machine we have one her tomcat with english language in 
> tomcat 
> manager, and mm/dd/yy date format, and other spanish language with dd/mm/yy.
> 
> Checking java variables with and jsp in each tomcat, we see that 
> java.text.DateFormat.getInstance() returns mm/dd/yy in the english manager 
> and 
> dd/mm/yy in the spanish manager.
> 
> Any suggestion?
> 
> Thanks in advance
> 
> --- El vie, 8/5/09, Mark Thomas escribió:
> De: Mark Thomas 
> Asunto: Re: Tomcat Language
> Para: "Tomcat Users List" 
> Fecha: viernes, 8 mayo, 2009 12:53
> 
> Rafa Orteu wrote:
> > Hello everybody!!!
> > 
> > I have 2 tomcats with the same configuration in 2 diferent servers with
> the
> > same configuration, one tomcat manager appears in spanish and the other
> one
> > appears in english, one have dd/MM/yyyy and the other MM/dd/yyyy.
> > 
> > Where can i configure this?
> 
> Looks like an operating system locale setting. Check the docs for you OS.
> 
> Mark
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to