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

Fixed issue #9591: Sometimes date_max / date_min validations for date/t... #298

Merged
merged 1 commit into from Mar 31, 2015

Conversation

gabrieljenik
Copy link
Collaborator

...ime questions doesn't allow to use the maximum date expected.

  • Reformat expression held into date_max / date_min into "Y-m-d H:i" format, so comparison can be done among equals format.

…e/time questions doesn't allow to use the maximum date expected.

- Reformat expression held into date_max / date_min into "Y-m-d H:i" format, so comparison can be done among equals format.
@mfaber
Copy link
Contributor

mfaber commented Mar 31, 2015

Will cause problems if someone enters a date > 2038 in min/max date. But at the end of unix time, the world wil probably seize to exist anyway. ;) Thanks for the fix!

mfaber added a commit that referenced this pull request Mar 31, 2015
Fixed issue #9591: Sometimes date_max / date_min validations for date/t...
@mfaber mfaber merged commit 202f68f into LimeSurvey:master Mar 31, 2015
@mfaber
Copy link
Contributor

mfaber commented Mar 31, 2015

@gabrieljenik Could you please also add to 2.06 branch? Thanks!

@gabrieljenik
Copy link
Collaborator Author

One upside that I noticed is that now US users will be able to enter min_date / max_date in natural language.

@mfaber
Copy link
Contributor

mfaber commented Mar 31, 2015

Yes, all the date formats correctly parsed by strtotime will work (YYYY-MM-DD, YYYY/MM/DD, DD.MM.YYYY, MM/DD/YYYY, DD-MM-YYYY).. :)

@gabrieljenik
Copy link
Collaborator Author

PR for v2.06: #299

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants