From 08697c2564354ce3e6a55d53c6818a39db77f613 Mon Sep 17 00:00:00 2001 From: Pedro Igor Date: Thu, 7 Mar 2024 17:30:11 -0300 Subject: [PATCH] User locale in server info has language and country switched around 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 a0f45f2092de..de1b6e384a95 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 static SystemInfoRepresentation create(long serverStartupTime) { 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; }