Fixed validation of dates by tfbrito · Pull Request #27 · dipcode-software/php-form · GitHub
Skip to content

Fixed validation of dates - #27

Merged
asretux merged 1 commit into
masterfrom
fix/dates_validation
Apr 22, 2018
Merged

Fixed validation of dates#27
asretux merged 1 commit into
masterfrom
fix/dates_validation

Conversation

@tfbrito

@tfbrito tfbrito commented Apr 21, 2018

Copy link
Copy Markdown
Contributor

When using dates like '31-02-2015' it would accept it and return the date of '03-03-2015' that is wrong.

Added validation to make sure the resulted date object is the same of the input, otherwise throws ValidationError

@tfbrito
tfbrito requested a review from asretux April 21, 2018 18:05
@asretux
asretux merged commit 81e0717 into master Apr 22, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants