On Sunday, April 23, 2017 at 9:04:09 PM UTC-7, Winter Kryz wrote:
>
> Hello everybody,
>
> I have a table
> db.define_table('Person',
>                 Field('last_name', 'string'),
>                 Field('first_name', 'string'),
>                 Field('nationality','string'),
>                 Field('birth_date', 'date', requires = 
> IS_NOT_EMPTY(error_message="select a date")),
> )
>
>
> and when I try to put that into that table I get this error. I tried to 
> drop the table, clean the past data but no luck
>
>  ValueError: invalid literal for int() with base 10: '06/04/2017'
>
>
> Any ideas would be appreciated?
>
>
A mis-match between the locale date format and the default format expected 
by the date widget?  You don't specifiy a date format in your field 
definition.  (One sometimes has issues also with the client and server 
locales differing.)

/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.

Reply via email to