import pytz


def to_utc(dt):
    """
    convert timezone to utc timezone, assuming it is in local time.
    :param dt: datetime obj
    :return: datetime obj
    """

    dt_local = dt.astimezone()
    return dt_local.astimezone(pytz.utc)