public static boolean clearLocalTimeZone(String param0) { org.sakaiproject.time.api.TimeService service = getInstance(); if (service == null) return false; return service.clearLocalTimeZone(param0); }
public static boolean clearLocalTimeZone(String param0) { org.sakaiproject.time.api.TimeService service = getInstance(); if (service == null) return false; return service.clearLocalTimeZone(param0); }
protected void addLocale(PortalRenderContext rcontext, Site site, String userId) { Locale prevLocale = null; ResourceLoader rl = new ResourceLoader(); if (userId != null) { prevLocale = rl.getLocale(); } Locale locale = setSiteLanguage(site); log.debug("Locale for site {} = {}", site.getId(), locale); String localeString = locale.getLanguage(); String country = locale.getCountry(); if(country.length() > 0) localeString += "-" + country; rcontext.put("locale", localeString); rcontext.put("dir", rl.getOrientation(locale)); if (prevLocale != null && !prevLocale.equals(locale)) { // if the locale was changed, clear the date/time format which was cached in the previous locale timeService.clearLocalTimeZone(userId); } } }
protected void addLocale(PortalRenderContext rcontext, Site site, String userId) { Locale prevLocale = null; ResourceLoader rl = new ResourceLoader(); if (userId != null) { prevLocale = rl.getLocale(); } Locale locale = setSiteLanguage(site); log.debug("Locale for site {} = {}", site.getId(), locale); String localeString = locale.getLanguage(); String country = locale.getCountry(); if(country.length() > 0) localeString += "-" + country; rcontext.put("locale", localeString); rcontext.put("dir", rl.getOrientation(locale)); if (prevLocale != null && !prevLocale.equals(locale)) { // if the locale was changed, clear the date/time format which was cached in the previous locale timeService.clearLocalTimeZone(userId); } } }