import pytz


def time_str(date):
    """
    By default datetimes aren't timezone aware and we need to clearly return everything in UTC

    Args:
        date:

    Returns:
        str

    """
    if date.tzinfo is None:
        date = date.replace(tzinfo=pytz.utc)
    return date.isoformat()