I see the error..the define field i correct ..the error is in my controller :) resolved
On Wednesday, 18 May 2016 20:54:56 UTC+2, Dave S wrote: > > > > On Wednesday, May 18, 2016 at 9:55:57 AM UTC-7, Alessio Varalta wrote: >> >> Hi i have this table >> >> db.define_table('verbale', >> >> Field('partecipants',label=T('Partecipanti'),type="text",requires=IS_LENGTH(3000)), >> Field('date_verbale_start',label=T('Data >> inizio'),type="datetime",requires=IS_DATETIME('%Y-%m-%d %H:%M:%S')), >> Field('date_verbale_end',label=T('Data >> fine'),type="datetime",requires=IS_DATETIME('%Y-%m-%d %H:%M:%S')), >> ) >> >> I send to my controller a json, I retrieve the fields and create new row >> but I have this error >> >> ValueError: invalid literal for int() with base 10: '24/05/2016' >> >> This is my json >> {"date_start":"25/05/2016 19:25:50","date_end":"27/05/2016 19:25:52"} >> Why? >> >> > Which db engine are you using? Also, the date format in your JSON input > doesn't match that in the requires specification, and should be failing the > validator. > > /dps > > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.