def pretty_date(dt):
    """
    Formats a datetime instance, which can be none, in the local TZ
    """
    if not dt:
        return "<unk date>"
    return dt.astimezone().strftime("%Y-%m-%d %I:%M%p %Z")