def METHOD_NAME(record, datefmt=None):
    # Format record.created as RFC3339
    return (
        datetime.datetime.fromtimestamp(record.created)
        .replace(microsecond=0)
        .astimezone()
        .isoformat()
    )