def METHOD_NAME(date=None):
    if not date:
        date = datetime.utcnow()
        date = date.replace(tzinfo=timezone.utc)
    if date.tzinfo is None:
        raise Exception("Refusing to format naïve datetime.")
    if date.tzinfo is not timezone.utc:
        date = date.astimezone(timezone.utc)
    return date.strftime("%Y%m%dT%H%M%SZ")