static String getModifiedLocalizedPattern(String pattern) {
    String pattern_to_use;
    // will always try to use the localized pattern if the pattern displays the minutes
    if (pattern.contains("mm")) {
      // if the localized pattern does not display seconds, add it in the pattern
      if (!pattern.contains("ss")) {
        int mm = pattern.indexOf("mm");
        pattern_to_use = pattern.substring(0, mm + 2) + ":ss" + pattern.substring(mm + 2);
      }
      // if the localized pattern already contains seconds, the pattern should be enough
      else {
        pattern_to_use = pattern;
      }

      // add the days of week to the pattern if not there yet
      if (!pattern_to_use.contains("EEE")) {
        pattern_to_use = "EEE " + pattern_to_use;
      }

      if (!pattern_to_use.contains("zzz")) {
        pattern_to_use = pattern_to_use + " zzz";
      }
    }
    // if the localized pattern doesn't even contain the minutes, then giving up using the
    // localized pattern since we have no idea what it is
    else {
      pattern_to_use = LOCALIZED_FORMAT_STRING;
    }

    return pattern_to_use;
  }
Creates a SimpleDateFormat using {@link #FORMAT_STRING}.

Thread Safety Issue: (From SimpleDateFormat) Date formats are not synchronized. It is
recommended to create separate format instances for each thread. If multiple threads access a
format concurrently, it must be synchronized externally.
geode-core/src/main/java/org/apache/geode/internal/logging/DateFormatter.java