I am trying to test localization of date formats in a web app. I am running a Tomcat 7 webserver, with the JSTL argument <fmt:setLocale value="${pageContext.request.locale.language}_${pageContext.request.locale.country}" />
on the page to set the date format. I am running the local server from Intellij, with the JVM arguments of -Duser.language=en -Duser.region=GB
yet every time I run the app the locale comes out as en_US
. What can I do to test the locale format change?
EDIT: I have also tried editing my client locale in chrome using chrome://settings/languages
and FireFox using the Quick Locale Switcher add-on.