import pytz


def to_utc(dt):
    """Make input time parameters UTC or force it."""
    if dt.tzinfo is None:
        return dt.replace(tzinfo=pytz.utc)
    else:
        return dt.astimezone(pytz.utc)