import pytz


def compare_dates(date_a, date_b):
    """
    Compares two dates with offset-aware format.
    Args:
        date_a: The first date to compare
        date_b: The second date to compare

    Returns:
        - if the date_b is greater than date_a = =1
        - if the date_a is greater than date_b = 1
        - otherwise = 0
    """
    try:
        date_a_offset_aware = pytz.UTC.localize(date_a)
    except ValueError:
        date_a_offset_aware = date_a

    try:
        date_b_offset_aware = pytz.UTC.localize(date_b)
    except ValueError:
        date_b_offset_aware = date_b

    if date_a_offset_aware > date_b_offset_aware:
        return 1
    elif date_b_offset_aware > date_a_offset_aware:
        return -1
    else:
        return 0