Problems, need help? Have a tip or advice? Post it here.
3 posts Page 1 of 1
I am trying to use db_persist to save a datetime editable, but it doesn't ever seem to save anything in that field when creating the new cloned page. For some reason the field is always left blank.

I have verified my datetime strings are in the correct (yyyy-mm-dd hh:mm:ss) format, so I know thats not the issue.

I have no trouble using db_persist_form to save this data, which makes it all the more odd since db_persist_form just calls db_persist...

Any help/thoughts would be appreciated.
Hi,

I'll need to see the code to know what could be going wrong.
Could you please post (or PM me) the relevant portion of your code that'd help me in duplicating the issue on my end?
Thanks for the creds.

I had a look. The problem seems to be that you are using an older version of Couch (1.4.5RC1). Please upgrade to the current release as it has fixed the datetime problem.

If you are not willing to go for an upgrade, I think just replacing the 'couch\addons\data-bound-form\datetime.php' file with the latest version should also be sufficient for rectifying this particular problem.

Please let me know how it goes.
Thanks.
3 posts Page 1 of 1