code: public static Date fromFtsString(String date) {
          if (date == null) {
              return null;
          }
          String zDate = iso822TimezoneToRfc3339Timezone(date);
          try {
              return df.get().parse(zDate);
          } catch (ParseException e) {
              throw new CouchbaseException("Cannot parse FTS date '" + date + "' despite convertion to RFC 822 timezone '"
                      + zDate + "'", e);
          }
      }
docs: Attempts to convert a date string, as returned by the FTS service, into a {@link Date}.
  
  The FTS service is expected to return date strings in RFC 3339 format, including the timezone information.
  For example: <code>2016-01-10T14:44:01-08:00</code> for a date in the UTC-8/PDT timezone.
  
  @param date the date in RFC 3339 format.
  @return the corresponding {@link Date}.
  @throws CouchbaseException when the date could not be parsed.