Skip to content

Commit

Permalink
Fixes #16 Month validation
Browse files Browse the repository at this point in the history
  • Loading branch information
DarkaOnLine committed Dec 20, 2018
1 parent 5b4bb12 commit ed9a3b8
Show file tree
Hide file tree
Showing 4 changed files with 438 additions and 276 deletions.
2 changes: 1 addition & 1 deletion composer.json
Expand Up @@ -4,7 +4,7 @@
"type": "library",
"keywords": [ "laravel", "validation", "credit card", "validator" ],
"require": {
"php": "^7.0",
"php": "7.*",
"illuminate/validation": "^5.5",
"illuminate/translation": "^5.5"
},
Expand Down

2 comments on commit ed9a3b8

@josuedor
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is not it working in formats Y/m, m/Y and y/m ?

@DarkaOnLine
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dates in the m/d/y or d-m-y formats are disambiguated by looking at the separator between the various components: if the separator is a slash (/), then the American m/d/y is assumed; whereas if the separator is a dash (-) or a dot (.), then the European d-m-y format is assumed.

From: http://php.net/manual/en/function.strtotime.php

Please sign in to comment.