src/org/ohmage/service/UploadValidationServices.java
public static void validateTimezone(final String timezone) 
			throws ServiceException {
		
		if(StringUtils.isEmptyOrWhitespaceOnly(timezone)) {
			throw new ServiceException(
					ErrorCode.SERVER_INVALID_TIMEZONE, 
					"timezone in upload message is null");
		}
		
		if(! DateTimeUtils.isValidTimezone(timezone)) {
			throw new ServiceException(
					ErrorCode.SERVER_INVALID_TIMEZONE, 
					"timezone in upload message is invalid/unknown to the server: " + 
						timezone);
		}
	}
/**
	 * Validates the provided timezone against the timezone abbreviations
	 * bundled with the JVM. WARNING: In some rare cases, client applications
	 * may be bundled with a superset of timezones (certain Android versions do
	 * this). This method will throw a ServiceException if the server JVM 
	 * does not understand the provided timezone.  
	 *  
	 * @param timezone The timezone to validate.
	 * @throws ServiceException if the timezone is null or unknown
	 */
Validates the provided timezone against the timezone abbreviations
bundled with the JVM. WARNING: In some rare cases, client applications
may be bundled with a superset of timezones (certain Android versions do
this). This method will throw a ServiceException if the server JVM
does not understand the provided timezone.

@param timezone The timezone to validate.
@throws ServiceException if the timezone is null or unknown
Validates the provided timezone against the timezone abbreviations bundled with the JVM . WARNING : In some rare cases client applications may be bundled with a superset of timezones ( certain Android versions do this ) . This method will throw a ServiceException if the server JVM does not understand the provided timezone . @param timezone The timezone to validate . @throws ServiceException if the timezone is null or unknown
public static void validateTimezone(final String timezone) 
			throws ServiceException {
		if(StringUtils.isEmptyOrWhitespaceOnly(timezone)) {
			throw new ServiceException(
					ErrorCode.SERVER_INVALID_TIMEZONE, 
					"timezone in upload message is null");
		}
		if(! DateTimeUtils.isValidTimezone(timezone)) {
			throw new ServiceException(
					ErrorCode.SERVER_INVALID_TIMEZONE, 
					"timezone in upload message is invalid/unknown to the server: " + 
						timezone);
		}
	}
public static void validateTimezone ( final String timezone ) throws ServiceException { if ( StringUtils . isEmptyOrWhitespaceOnly ( timezone ) ) { throw new ServiceException ( ErrorCode . SERVER_INVALID_TIMEZONE , "timezone in upload message is null" ) ; } if ( ! DateTimeUtils . isValidTimezone ( timezone ) ) { throw new ServiceException ( ErrorCode . SERVER_INVALID_TIMEZONE , "timezone in upload message is invalid/unknown to the server: " + timezone ) ; } }
Validates the provided timezone against the timezone abbreviations
 bundled with the JVM.
Validates the provided timezone against the timezone abbreviations bundled with the JVM .