From where does java.util.Locale.getDefault() gets the locale configuration.

Solution Unverified - Updated -

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.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content