code: public static Date parseRFC822(String sDate, final Locale locale) {
          sDate = convertUnsupportedTimeZones(sDate);
          return parseUsingMask(RFC822_MASKS, sDate, locale);
      }
docs: Parses a Date out of a String with a date in RFC822 format.
  <p/>
  It parsers the following formats:
  <ul>
  <li>"EEE, dd MMM yyyy HH:mm:ss z"</li>
  <li>"EEE, dd MMM yyyy HH:mm z"</li>
  <li>"EEE, dd MMM yy HH:mm:ss z"</li>
  <li>"EEE, dd MMM yy HH:mm z"</li>
  <li>"dd MMM yyyy HH:mm:ss z"</li>
  <li>"dd MMM yyyy HH:mm z"</li>
  <li>"dd MMM yy HH:mm:ss z"</li>
  <li>"dd MMM yy HH:mm z"</li>
  </ul>
  <p/>
  Refer to the java.text.SimpleDateFormat javadocs for details on the format of each element.
  <p/>
  
  @param sDate string to parse for a date.
  @return the Date represented by the given RFC822 string. It returns <b>null</b> if it was not
  possible to parse the given string into a Date.