Skip to content

Allow 18-year-olds to enter their birth year#2752

Open
c-tonneslan wants to merge 1 commit into
DemocracyClub:masterfrom
c-tonneslan:fix/birth-year-eighteen
Open

Allow 18-year-olds to enter their birth year#2752
c-tonneslan wants to merge 1 commit into
DemocracyClub:masterfrom
c-tonneslan:fix/birth-year-eighteen

Conversation

@c-tonneslan

Copy link
Copy Markdown

Fixes #2726.

clean_birth_date was using current_year - 19 as the cutoff, so right now (2026) it rejects 2008, even though someone born in 2008 turns 18 this year and is eligible to stand. Bumped the offset to 18.

Minimum candidate age in the UK is 18, so the year cutoff was off by
one and rejected anyone whose birth year would make them currently 18.

Closes DemocracyClub#2726

Signed-off-by: Charlie Tonneslan <cst0520@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Allow 18-yr-olds to enter their birth year

1 participant