import pytz


def date_to_utc(localdt, timezone):
    """Convert naive datetime to UTC, remembering timezone quirks."""
    timezone = pytz.timezone(timezone)
    return timezone.localize(localdt).astimezone(pytz.utc)