/thomas
On 15 Jul 2014, at 17:35, José Lorenzo <jose.zap@gmail.com> wrote:
If you send a string that can be parsed by DateTime() it should just work
On Tuesday, July 15, 2014 3:43:23 PM UTC+2, Thomas von Hassel wrote:Hi
Ok, date time fields in 3.x are kicking my ass a bit, because i don’t want to use the builtin dateTime widget, but just a text field with a javascript date picker.
Now, when the post data is marshalled, is there a good place to configure how a date/time string is parsed to the DateTime object ?
I spent a lot of time trying to use Entity get/set to transform my data, but i’m going to have a lot of models where is needs to be done, so i’ve tried to use Traits on the entity, but couldn’t find a good place to override setting of arbitrary properties.
Any other good ideas ?
/thomas
--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment