mostafa-abdullah / kheir-blogger

2 stars 3 forks source link

Solving the problem of birth date and age when updating #182

Closed Omarkojak closed 8 years ago

Omarkojak commented 8 years ago

Bug : When a volunteer edit his profile and didn't enter a birth date the date was set automatically to 00-00-0000 then your age become 2016 now this bug is fixed

Omarkojak commented 8 years ago

however there is a small problem the date is not in the uk format this means month before day mm/dd not dd/mm if you know any solution about this problem please help

AhmadElsagheer commented 8 years ago

it shouldn't be handled this way. The client side shouldn't send a dummy birthdate which is the case. It must be handled in the blade view. From the server point of view, this could be added as a rule for the request (age must be greater than certain value)