mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

jvergara
03.02.2009 062eda7fadd52ee0f7fd5a9b318761bfbd52527d
opends/src/server/org/opends/server/tools/StopDS.java
@@ -517,6 +517,15 @@
          err.println(wrapText(message, MAX_LINE_WIDTH));
          return LDAPResultCode.CLIENT_SIDE_PARAM_ERROR;
        }
        // Check that the provided date is not previous to the current date.
        Date currentDate = new Date(System.currentTimeMillis());
        if (currentDate.after(stopTime))
        {
          Message message = ERR_STOPDS_DATETIME_ALREADY_PASSED.get(
              timeStr);
          err.println(wrapText(message, MAX_LINE_WIDTH));
          return LDAPResultCode.CLIENT_SIDE_PARAM_ERROR;
        }
      }
    }