protected String createSendTime ( final Date sendTime ) { if ( sendTime == null || new Date ( System . currentTimeMillis ( ) + 1000L * 60L ) . after ( sendTime ) ) { return null ; } String customSendTimePattern = StringUtils . isBlank ( this . sendTimePattern ) ? DEFAULT_SEND_TIME_PATTERN : this . sendTimePattern ; SimpleDateFormat sdf = new SimpleDateFormat ( customSendTimePattern , Locale . GERMANY ) ; sdf . setTimeZone ( TimeZone . getTimeZone ( "Europe/Berlin" ) ) ; return sdf . format ( sendTime ) ; }
Creates the send time URL parameter value .