use of com.genexus.util.GXTimeZone in project JavaClasses by genexuslabs.
the class JavaModelContextExtension method setTimeZone.
public Boolean setTimeZone(ModelContext model, String sTz) {
HttpContext httpContext = (HttpContext) model.getHttpContext();
sTz = CommonUtil.rtrim(sTz);
TimeZone tz = TimeZone.getTimeZone(sTz);
Boolean ret = tz.getID().equals(sTz);
if (ret) {
model.setCurrentTimeZone(tz);
httpContext.webPutSessionValue("GXTimezone", tz.getID());
}
return ret;
}
Aggregations