It should work as far as I can see... Are you sure you look at the right field, because only start has represent in the model definition you show us.
Richard On Mon, Apr 22, 2013 at 6:16 PM, Christian Espinoza <[email protected]>wrote: > Hi, I have this table definition: > > > db.define_table('timetable', > Field('customer', db.customer, label='Cliente'), > Field('name', length=160, label='Nombre'), > Field('start', 'time', label='Inicio' ), > Field('finish', 'time', label='Final' ), > signature > ) > db.timetable.start.represent = lambda value, row: value.strftime("%H:%M") > > > and the represent function works only when the field is on view mode, but > when I edit it on the html input > the data have this format: 12:00:00 and I don't want see the seconds.. > > What is happens? I missed something? > I'm working with mysql.. > > Greetings. > Christian. > > -- > > --- > 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 [email protected]. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- --- 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 [email protected]. For more options, visit https://groups.google.com/groups/opt_out.

