From where does java.util.Locale.getDefault() gets the locale configuration.
Issue
- From where EAP will pick the Locale configuration.
import java.util.Calendar;
import java.util.Date;
import java.util.Locale;
public static Date dateNow(final Locale loc, boolean onlyDate)
{
final Date now =
Calendar.getInstance((loc == null) ? Locale.getDefault() : loc).getTime();
. . .
}
Environment
- Red Hat JBoss Enterprise Application Platform (EAP)
- 6.x
- 7.x
- Oracle JDK/OpenJDK
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.