I had this from the web2py book: db(db.person.id > 3).update(name='Ken')
and adapted it to update records in an event list: db(db.cal_event_list.id > 0).update(createdOn = db.cal_event_list.createdOn + datetime.timedelta(hours=1)) This code does work it adds 1 hour to every createdOn datetime. From your reply I learn that it doesn't work: you're trying to tell the database to execute a piece of python code. > Could you please tbe a bit more specific as to why you think my code is wrong. Kind regards, Annet -- 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.