<af:convertDateTime> Doesn't Change The Date Format According The Current Locale In Portlet. (Doc ID 1457203.1)

Last updated on MARCH 08, 2017

Applies to:

Oracle WebCenter Portal - Version 11.1.1.5.0 and later
Information in this document applies to any platform.

Symptoms

Standard ADF code contains date-time fields which use the component to convert strings into Date based on the pattern set.

These work fine standalone, and if the browser language changes, then the date format changes
eg In English date is '03. March 2001'. After switching to portal locale=de, the value changes to '03. März 2001'

However when this ADF is consumed as a portlet, this language switching is not working.
If we switch the language for example from english to german and back, the portlets also switch their language correctly but the date column in the table (af:convertDateTime) stays in the browser language.

This is using JDeveloper 11.1.1.5.

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms