[opencms-dev] Date format (day,month,year)

Thomas Kiesl thomas.kiesl at bluemars.net
Wed Oct 25 09:37:05 CEST 2006


Hello Claudio,

where is the date printed?

You can format the date with java.text.SimpleDateFormat you set a 
pattern and a locale, then you can convert Timestamps, Dates etc into a 
formatted String.

Best regards

Thomas

Claudio Miranda schrieb:
> 
>     I have opencms 6.2.2, solaris, Sun AppServer 8.1, JDK 1.5_08. Everything
> working fine. Editing, publishing,etc.
> 
>     The only issue is the date and time format. The default is month, day,
> year and am/pm format, that is english.
>     The brazilian format is day,month, year and 24h time format.
>     How can this be modified ? I thought, by just adjusting the JVM
> properties, it should work:
> 
> -Duser.country=BR
> -Duser.timezone=Brazil/East
> -Duser.language=pt
> -Dfile.encoding=ISO8859-1 
> 
>     So, anyone has any tips ?
> 
> thanks




More information about the opencms-dev mailing list