From fa8485e10e641c05e37dce223b2ef5c0c62ef2bc Mon Sep 17 00:00:00 2001 From: Pedro Igor Date: Fri, 15 Mar 2024 10:30:32 -0300 Subject: [PATCH] User locale in server info has language and country switched around (#27680) Closes #17154 Signed-off-by: Pedro Igor --- .../keycloak/representations/info/SystemInfoRepresentation.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/java/org/keycloak/representations/info/SystemInfoRepresentation.java b/core/src/main/java/org/keycloak/representations/info/SystemInfoRepresentation.java index a0f45f2092d..de1b6e384a9 100755 --- a/core/src/main/java/org/keycloak/representations/info/SystemInfoRepresentation.java +++ b/core/src/main/java/org/keycloak/representations/info/SystemInfoRepresentation.java @@ -63,7 +63,7 @@ public class SystemInfoRepresentation { rep.userDir = System.getProperty("user.dir"); rep.userTimezone = System.getProperty("user.timezone"); if (System.getProperty("user.country") != null && System.getProperty("user.language") != null) { - rep.userLocale = (new Locale(System.getProperty("user.country"), System.getProperty("user.language")).toString()); + rep.userLocale = (new Locale(System.getProperty("user.language"), System.getProperty("user.country")).toString()); } return rep; }