User Experience strange behaviour of expiry date for provisioning profile (Distribution) of IPA

Earlier we were using automatically created provisioning profile from XCode for generating IPA. Now we decided to use manual provisioning profile created from Apple Developer Portal. Manual Provisioning profiles were created and imported successfully in XCode, and we can create IPA.

But we are observing strange behaviour of IPA when we tested them near expiry date (By changing date of iPad).
Sometime IPA over works the expiry date of provisioning profile and sometimes it doesn’t work within expiry.

For Example,

We tested it by changing and setting date and time of iPad within and over expiry date of profile 

Tested on 1st August 2022
IPA A (Expiry date - 8th July 2023) -> Works till 31st July 2023
IPA B (Expiry date - 1st August 2023) -> Works till 31st July 2023

Tested on 2nd August 2022
IPA A (Expiry date - 8th July 2023) -> Works till 31st July 2023
IPA B (Expiry date - 1st August 2023) -> Works till 1st August 2023
IPA C (Expiry date - 2nd August 2023) -> Works till 1st August 2023

We also tested changing time of iPad to match date and time of expiry of profile, but it also didn't work for us.

Does anyone know reason for this strange behaviour of expiry date for provisioning profile?
Or if someone could guide us on way to create and test such profile with future expiry dates.

User Experience strange behaviour of expiry date for provisioning profile (Distribution) of IPA
 
 
Q