Massimo, I deleted my whole environment (folder), downloaded web2py, created a new application, wrote this as my simplest test. This is the model I used:
db.define_table('timesheet', Field('employee',db.auth_user), Field('DesdeFecha','date'), Field('HastaFecha','datetime')) db.timesheet.employee.requires=IS_IN_DB(db,'auth_user.id','% (first_name)s') and it does not work. The dates just dont save on my table. I am using linux and the latest version of web2py 1.92.1. Not even two days ago, everything was working to perfection. Thanks dan On Feb 18, 1:42 pm, Massimo Di Pierro <massimo.dipie...@gmail.com> wrote: > Please post a complete example so I can reproduce the problem. Also > give us more details about OS, web2py version and OS. > > On Feb 18, 3:30 pm, greenpoise <danel.sega...@gmail.com> wrote: > > > > > I am still trying to solve my issue. The date picker shows up and when > > I pick a date, it puts it in the text box. However, it does not saves > > it (either thru the application or thru database administration tool). > > But if I do Field('DesdeFecha', 'date',default=request.now), it saves > > the date/time into the database..Now remember, my field is date... my > > lambda function is not working either..no error.. > > > Help please