(value, phone_tz)
return value.replace(tzinfo=pytz.utc)
adjust a UTC datetime so that it's comparable with a phone datetime
    (like timeEnd, modified_on, etc.)

    returns a timezone-aware date
adjust a UTC datetime so that it's comparable with a phone datetime
    (like timeEnd, modified_on, etc.)
adjust a UTC datetime so that it s comparable with a phone datetime ( like timeEnd modified_on etc . )
def _adjust_utc_datetime_to_phone_datetime(value, phone_tz):
    """
    adjust a UTC datetime so that it's comparable with a phone datetime
    (like timeEnd, modified_on, etc.)

    returns a timezone-aware date

    """
    phone_tz = _soft_assert_tz_not_string(phone_tz)
    assert value.tzinfo is None
    return value.replace(tzinfo=pytz.utc)
def _adjust_utc_datetime_to_phone_datetime ( value , phone_tz ) : phone_tz = _soft_assert_tz_not_string ( phone_tz ) assert value . tzinfo is None return value . replace ( tzinfo = pytz . utc )