private void constrainStartAndEndTime(InlongGroupRequest request) {
        Timestamp startTime = request.getStartTime();
        Timestamp endTime = request.getEndTime();
        Preconditions.expectTrue(startTime != null && endTime != null, "start time or end time cannot be empty");
        long currentTime = System.currentTimeMillis();
        if (startTime.getTime() < currentTime) {
            Timestamp newStartTime = new Timestamp(currentTime);
            request.setStartTime(newStartTime);
            LOGGER.warn("start time is less than current time, re-set to current time for groupId={}, "
                    + "startTime={}, newStartTime={}", request.getInlongGroupId(), startTime, newStartTime);
        }
        if (request.getStartTime().getTime() > endTime.getTime()) {
            request.setEndTime(request.getStartTime());
            LOGGER.warn("end time is less than start time, re-set end time to start time for groupId={}, "
                    + "endTime={}, newEndTime={}", request.getInlongGroupId(), endTime, request.getEndTime());
        }
    }
Add constraints to the start and end time of the offline synchronization group.
1. startTime must >= current time
2. endTime must >= startTime
inlong-manager/manager-service/src/main/java/org/apache/inlong/manager/service/group/InlongGroupServiceImpl.java