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

can't add a book because of form validation error #3

Open
adnoh opened this issue Mar 28, 2014 · 0 comments
Open

can't add a book because of form validation error #3

adnoh opened this issue Mar 28, 2014 · 0 comments

Comments

@adnoh
Copy link

adnoh commented Mar 28, 2014

when trying to add a book it returns me a form validation error.
not shure what was your plan, but currently you submit the date converted to timeformat (example: 1394838000000) and your entity wants a dateFormat which is not compatible by default.
I've tried with setup the formtype:
->add('releaseDate', 'datetime' ,array('date_widget'=> 'single_text', 'date_format'=>'yyyy-MM-dd', 'input'=>'timestamp'))
or
->add('releaseDate', 'datetime' ,array('date_widget'=> 'single_text', 'input'=>'timestamp'))
but this all did'nt work.
Tried even to divide by 1000 in the library.js function addBook #48 which seems to be a correct js-timestamp format to me.
still can't submit a book when releaseDate is filled.

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

1 participant