code: private static String formatDate(Date date) {
          SimpleDateFormat formatter = new SimpleDateFormat(
                  "yyyy-MM-dd'T'HH:mm:ss'Z'");
          formatter.setTimeZone(TimeZone.getTimeZone("GMT"));
          return formatter.format(date);
      }
docs: it has unwanted millisecond precision