List of usage examples for java.util TimeZone getID
public String getID()
From source file:com.globalsight.webservices.Ambassador.java
/** * Get TimeZone by userId Note: web service API for Java. * /*from w w w . j a v a2 s . c o m*/ * @throws WebServiceException */ public String getUserTimeZone(String p_accessToken, String p_userName) throws WebServiceException { checkAccess(p_accessToken, "getUserTimeZone"); TimeZone timeZone = null; try { timeZone = ServerProxy.getCalendarManager().findUserTimeZone(UserUtil.getUserIdByName(p_userName)); } catch (Exception e) { logger.error("Failed to get user time zone. ", e); timeZone = TimeZone.getDefault(); } return timeZone.getID(); }