src/org/ohmage/util/DateTimeUtils.java
public static boolean isValidTimezone(final String tz) {
		if(null != tz) {
			// TODO store a static sorted copy of this list?
			return Arrays.asList(TimeZone.getAvailableIDs()).contains(tz);
		}
		return false;
	}
/**
	 * Validates that some timezone string is a valid timezone string.
	 * 
	 * @param tz The timezone string.
	 * 
	 * @return True if the timezone string is a valid timezone; false, 
	 * 		   otherwise.
	 */
Validates that some timezone string is a valid timezone string.

@param tz The timezone string.

@return True if the timezone string is a valid timezone; false,
otherwise.
Validates that some timezone string is a valid timezone string . @param tz The timezone string . @return True if the timezone string is a valid timezone ; false otherwise .
public static boolean isValidTimezone(final String tz) {
		if(null != tz) {
			return Arrays.asList(TimeZone.getAvailableIDs()).contains(tz);
		}
		return false;
	}
public static boolean isValidTimezone ( final String tz ) { if ( null != tz ) { return Arrays . asList ( TimeZone . getAvailableIDs ( ) ) . contains ( tz ) ; } return false ; }
Validates that some timezone string is a valid timezone string.
Validates that some timezone string is a valid timezone string .
// TODO store a static sorted copy of this list?