In web2py_ajax.html there is the format that is used for jquery, try that.
2012/12/18 marino segnan <sgn...@gmail.com> > Hello, > > I am a beginner with web2py and I have this apparently simple problem. > I have a db table: > > db.define_table('tappe', > Field('ora','time',requires=IS_TIME('%H:%M')) > ) > > I would like to display the time in all the forms > always in the same format as the validator, foe example '12:13' > but: > > 1) I tried represent(..) and works only in crud.read(..); > crud.update(..) ignores it > > 2) I tried using SQLFORM(..) and changed the variable value, eg. > > form.vars.ora = row.ora.strftime('%H:%M') > > and the string is temporarily formatted as requested, > but when I edit it, it changes again to ' %H:%M:%S' > > What am I missing? > What is the recommended solution? > > Thanks in advance. > > -- > > > > -- Att. Carlos J. Costa Cientista da Computação Esp. Gestão em Telecom EL MELECH NEEMAN! אָמֵן --