Skip to content

Commit

Permalink
User locale in server info has language and country switched around
Browse files Browse the repository at this point in the history
Closes keycloak#17154

Signed-off-by: Pedro Igor <[email protected]>
  • Loading branch information
pedroigor committed Mar 15, 2024
1 parent e40227f commit 08697c2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 08697c2

Please sign in to comment.