Please find the attached patch for RM-6120: Adding/updating user should not allow to add an older date in account expires.
Added UI validation if a user enters the account expiration date manually.
I think this needs to be reverted (and the UI fixed to allow an older date to be selected).
Please fixed as suggested by Dave and send the patch. I'll update the RM
Selecting a past expiry date is a perfectly valid way to create an account that is effectively locked, for example, to allow pre-creation of roles for staff that are yet to join.