nimo frey wrote:Tried it with long, tried it with full:
<f:convertDateTime type="both" dateStyle="full"/>
but no seconds visible.
Using a pattern such as: <f:convertDateTime pattern="yyyy-MM-dd HH:mm:ss"/>
works but then it will prints it to that string for ALL Locales !!
Oh, you want a locale dependent format? OK then
I do not understand why dateStyle="full" does not print the seconds.
Maybe your locale doesn´t "allow" that. Also see the aforementioned javadoc of DateFormat. Here´s an extract of relevance:
... You can pass in different options to these factory methods to control the length of the result; from SHORT to MEDIUM to LONG to FULL. The exact result depends on the locale, but generally ...
So, either life with it or use a fixed pattern.