Skip to content

Instantly share code, notes, and snippets.

@raykrueger
Created March 25, 2009 20:29
Show Gist options
  • Save raykrueger/85690 to your computer and use it in GitHub Desktop.
Save raykrueger/85690 to your computer and use it in GitHub Desktop.
/**
* @return Returns the timeZone.
*/
public TimeZone getTimeZone() {
return (timeZone != null ? timeZone :
getCurrentUser() != null && getCurrentUser().getTimezone() != null ?
DateUtil.getTimeZone(getCurrentUser().getTimezone()) :
DEFAULT_TIMEZONE != null ? DateUtil.getTimeZone(DEFAULT_TIMEZONE) :
TimeZone.getDefault());
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment