from datetime import datetime
import pytz


def get_datetime(when):
    """Return datetime object (UTC) from ASN1 time string."""
    dt = datetime.strptime(when, "%Y%m%d%H%M%SZ")
    return dt.replace(tzinfo=pytz.utc)