from datetime import datetime


def parse_date(date_str):
    """
    Parses the date format provided by GitLab's builtin variable CI_PIPELINE_CREATED_AT
    """
    return datetime.strptime(date_str, '%Y-%m-%dT%H:%M:%SZ')