Avoid 500 errors with long expiration dates in tokens
If a user created a personal access token with an expiration date far in advance, the date would be saved but a 500 error would be shown on display:
PG::DatetimeFieldOverflow: ERROR: date out of range for timestamp
To fix this, since we're comparing dates, we shouldn't use NOW in the SQL query. Instead, we use CURRENT_DATE.
This fix is similar to gitlab-foss!25806 (merged).
Closes #26306 (closed)
Edited by Stan Hu