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

Date deconstruction invalid for non-DDMMYY date formats #42

Closed
mattsteven opened this issue Jan 25, 2012 · 1 comment
Closed

Date deconstruction invalid for non-DDMMYY date formats #42

mattsteven opened this issue Jan 25, 2012 · 1 comment

Comments

@mattsteven
Copy link

UserDetail tries to insert Array as a value because it fails to detect alternative date formats.

Search the UserDetail.php model's saveSection function for this comment:

// Quickfix for date inputs - TODO Try to use $this->deconstruct()?

The following line has the date detection format hardcoded. This is obviously a problem for those who rearrange things. Either a quick loop with in_array or possibly following the TODO in the line would solve the problem and make any related date format possible.

@burzum
Copy link

burzum commented Mar 22, 2012

This is now fixed in 4366a89 Please see the UserDetailModel test case to see how to make this work. You need to define a schema for your section. I fixed the code that makes the model use the schema for the section you're saving.

@burzum burzum closed this as completed Mar 22, 2012
si pushed a commit to si/petrol that referenced this issue Apr 10, 2014
…the right schema data now from the sectionSchemas.
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