commit
dc327ddddb
1 changed files with 3 additions and 1 deletions
|
@ -46,7 +46,9 @@ public class SystemInfoRepresentation {
|
||||||
rep.userName = System.getProperty("user.name");
|
rep.userName = System.getProperty("user.name");
|
||||||
rep.userDir = System.getProperty("user.dir");
|
rep.userDir = System.getProperty("user.dir");
|
||||||
rep.userTimezone = System.getProperty("user.timezone");
|
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.country"), System.getProperty("user.language")).toString());
|
||||||
|
}
|
||||||
return rep;
|
return rep;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue