mirror of
https://github.com/keycloak/keycloak.git
synced 2026-01-25 16:42:34 +00:00
User locale in server info has language and country switched around (#27680)
Closes #17154 Signed-off-by: Pedro Igor <pigor.craveiro@gmail.com>
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user