def _adjust_utc_datetime_to_phone_datetime(value, phone_tz):
    phone_tz = _soft_assert_tz_not_string(phone_tz)
    assert value.tzinfo is None
    if phone_timezones_have_been_processed():
        return value.replace(tzinfo=pytz.utc)
    else:
        return _adjust_utc_datetime_to_timezone(value, phone_tz)
adjust a UTC datetime so that it's comparable with a phone datetime
dataset/ETHPy150Open dimagi/commcare-hq/corehq/util/timezones/conversions.py/_adjust_utc_datetime_to_phone_datetime