-
Notifications
You must be signed in to change notification settings - Fork 71
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
Islandora Settings offers invalid time expression #1498
Comments
Ah, you are right. It validates using strtotime. All the examples should be valid relative forms which, for the existing ones, require the "+" sign at the beginning (because using the minus makes no sense in this context). The line to update is here. |
Would this benefit from some help in the validation function? Like assuming/requiring a |
@whikloj, sure. The validation code currently insists it is a valid time, although we could improve the validation error message. |
Thanks, @rosiel for wrapping this up for us! |
On Islandora Settings in Drupal (
/admin/config/islandora/core
) the JWT Expiry field description suggests times like60, "2 days", "10h", "7d"
but if you try7d
the form errors with"7d" is not a valid time or interval expression."
Do the offered times all need "+" added, e.g.+7d
works.The text was updated successfully, but these errors were encountered: