Unfortunately I did upgrade before seeing this … I’m seeing the same exact problem, whatever the date I put, either using the calendar widget or entering it manually. I even tried mm/dd/yyyy in case it was some problem with the date format (in french I have dd/mm/yyyy).
Ugh. I seem to be running into a form of this problem. I have my sharing set up to have a default expiration, but now that value can’t be changed via the “customize link” menu.
It appears to be fixed in NextCloud 28.0.3 web interface but not in the desktop client. The latest desktop client 3.12.1 still has the expiry date is in the past problem.