def login_required_ajax(function=None, redirect_field_name=None):
    def _decorator(view_func):
        def _wrapped_view(request, *args, **kwargs):
            if request.user.is_authenticated():
                return view_func(request, *args, **kwargs)
            else:
                return HttpResponse(status=401)
        return _wrapped_view

    if function is None:
        return _decorator
    else:
        return _decorator(function)
put a phone datetime (like timeEnd, modified_on, etc.) into UTC
dataset/ETHPy150Open ofri/Open-Knesset/auxiliary/decorators.py/login_required_ajax--crossover with--dataset/ETHPy150Open dimagi/commcare-hq/corehq/util/timezones/conversions.py/_adjust_phone_datetime_to_utc