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:
Pedro Igor
2024-03-15 10:30:32 -03:00
committed by GitHub
parent e40227fa50
commit fa8485e10e

View File

@@ -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;
}