Jump to content

Please enter a valid birthdate (No rediculous past dates or dates in the future)


DZComposer

Recommended Posts

It has come to my attention that SMF does not properly validate entry of birth dates to make sure they are not in the future.

SMF calculates age by subtracting the birthdate from the current date. Entering a birthdate in 2019 will result in an age of -10.

Please refrain from entering a future birthdate, as this creates unexpected negative numbers and may cause problems.

Also, please don't enter something like "1000" as your birth year either. No one here is 1000 years old. I would much rather prefer you enter your real birthdate. Thanks.

If I come across any crazy DOBs, I will change them.

I will report this bug to the SMF team.

Link to comment
Share on other sites

It has come to my attention that SMF does not properly validate entry of birth dates to make sure they are not in the future. Please refrain from entering a future birthdate, as this creates unexpected negative numbers and may cause problems.

If I come across any, I will change them.

I will report this bug to the SMF team.

You noticed the guy with a -26 too? I just thought that was a glitch on my part.

Link to comment
Share on other sites

Just out of curiosity, what kinda of values does smf use for birthday? Shouldn't that be Integer per date slot?

Link to comment
Share on other sites

I actually haven't looked in the database, so I am not sure how it is stored. I do know that MySQL has a Date datatype, but I'd have to log into the db to see if it is using it.

I filed a bug report with SMF regarding this. Hopefully they will fix it in the next release.

EDIT: Yes, the birthdate is stored in the database as the MySQL DATE datatype.

Link to comment
Share on other sites

Changed to include ridiculous past dates.

Link to comment
Share on other sites

Guest Julius Quasar

I saw how Pig-Kay listed his birthday art 4,000 years old...that was epic! xD  Cool!

I wonder how old he really is.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...