Allow birthday of format DD.MM.YYYY (or generally localized version)
Description
Birthday should be possible to enter in a way users are familiar with.
Goal
Less confusion.
Evidence
Support regularly receives requests by users whom the system falsely considers to be too young (< 18 years) due to them entering their birthdate in the German format DD.MM.YYYY
Solution
-
Also accept and convert input in the format DD.MM.YYYY -
Probably better: Get the user locale and adapt. -
Apply this to all dates, e.g. events
Links / references
- https://gitlab.com/foodsharing-dev/foodsharing/blob/85c909a3c5b8489b56931493a3452170c34f85ee/client/src/join.js#L134-147
- https://gitlab.com/foodsharing-dev/foodsharing/blob/85c909a3c5b8489b56931493a3452170c34f85ee/src/Modules/Login/LoginXhr.php#L180-186
- https://gitlab.com/foodsharing-dev/foodsharing/blob/85c909a3c5b8489b56931493a3452170c34f85ee/views/pages/Register/RegisterForm.twig#L58-61
Edited by Tobias Kienzler