To drop the seconds value as in the example format '%H:%M' above.

On Mar 12, 8:07 am, mdipierro <[email protected]> wrote:
> The 'time' fields have a JS time picker. If you choose to do
>
>   db.table.field.requires.formatter=lambda v: v.strftime('%H-%M')
> instead of
>   db.table.field.requires.formatter=lambda v: v.strftime('%H:%M')
>
> the time picker would not recognize it as valid time. Why would
> anybody change the time format?
>

-- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en.

Reply via email to