-
-
Notifications
You must be signed in to change notification settings - Fork 438
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix Core Bug: To make "01/01/1970" a valid birthday #1851
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it possible to merge this as asap ? , i´ve got another core bug which would result on this issue and a fix as well |
3d97c32
I have fixed a following bug after this fix. Steps to Reproduce:
Fix: I have improved the settime() and getTime() method and replaced strtotime with a Datetime. There is absolutely no reason to parse a unix timestamp for a birthday date. Awaiting new Review :) |
Added variable type to doctype Co-authored-by: Ng Kiat Siong <[email protected]>
@1Shiroyuuki1 I tested your commit and it worked as expected. One last request from me:
The docblock needs to be updated: * @method DateTime getTime() Please do another commit. |
@kiatng done 👍 |
When parsing "01/01/1970" as date to setDate() the output is '0'.
Because default value of strtoftime() is "01/01/1970".
Description (*)
According to this bug means that Magento 1.X.X never allowed a birthday of "01/01/1970".
A simple null check in the getter will prevent it.
Manual testing scenarios (*)
Contribution checklist (*)