[TYPO3-project-formidable] Problem inserting date into database

Sigurður E. Vilhelmsson s.vilhelmsson at gmail.com
Thu Aug 21 15:02:31 CEST 2008


Hi all,

I'm hooked on Formidable and have been playing around with it for a
few days. However, I have a big problem with inserting dates into the
database.

I have a form with the following renderlet:

<renderlet:DATE name="brottfor" label="Æskilegur brottfarardagur">
       <data>
               <datetime format="%d/%m/%Y" locale="is_IS"/>
       </data>
       <validators>
               <validator:STANDARD>
                       <required message="Brottfarardag vantar" />
               </validator:STANDARD>
       </validators>
</renderlet:DATE>

I've localized the calendar.js with a calendar-is.js file.

The corresponding database field is of the type Datetime.

When I submit the form, the field validates OK, all other fields are
inserted in the database, but the datetime field has the entry
0000-00-00 00:00:00.

Any ideas as to how to begin troubleshooting this?

Best regards,
Sigurdur


More information about the TYPO3-project-formidable mailing list