Skip to content
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

Problem in validateDateFormat #64

Closed
sandneyfarias opened this issue May 9, 2014 · 2 comments
Closed

Problem in validateDateFormat #64

sandneyfarias opened this issue May 9, 2014 · 2 comments

Comments

@sandneyfarias
Copy link

The issue happens when you try to validate a date in pt-br format (d/m/Y). I changed the return in method validateDateFormat to: return $parsed['warning_count'] === 0;

@vlucas
Copy link
Owner

vlucas commented May 9, 2014

Can you share the code calls that for are making?

@sandneyfarias
Copy link
Author

This is the example, in pt-br the date 31/02/1974 (1974-02-31) is invalid

'31/02/1974')); $vDates = array('date'); $v->rule('dateFormat', $vCamposData, 'd/m/Y')->message('{field} inválida'); if($v->validate()) { echo "Yay! We're all good!"; } else { // Errors print_r($v->errors()); } ?>

@vlucas vlucas closed this as completed in 9b5b0cf Jul 28, 2014
vlucas added a commit that referenced this issue Jul 28, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants