import pytz


def utc_datetime(dt, station):
    """Returns the datetime dt converted to the UTC timezone"""
    if not dt.tzinfo:
        timezone = pytz.timezone(station.timezone)
        dt = timezone.localize(dt)
    return dt.astimezone(pytz.utc)