@classmethod
def _expand_dates(cls, task, start, end):
    """extends the given tasks date values with the given start and end
        values
        """
    if task:
        if task.start > start:
            task.start = start
        if task.end < end:
            task.end = end
