use of org.apache.wicket.protocol.http.ClientProperties in project midpoint by Evolveum.
the class MidPointAuthWebSession method setClientCustomization.
public void setClientCustomization() {
MidPointPrincipal principal = SecurityUtils.getPrincipalUser();
if (principal == null) {
return;
}
//setting locale
setLocale(WebModelServiceUtils.getLocale());
LOGGER.debug("Using {} as locale", getLocale());
//set time zone
ClientProperties props = WebSession.get().getClientInfo().getProperties();
props.setTimeZone(WebModelServiceUtils.getTimezone());
LOGGER.debug("Using {} as time zone", props.getTimeZone());
}
Aggregations