On this issue:


* timepicker:  web2py requires 24 hour time representation.  If I have
a default time
of "19:00", it gets displayed correctly in the form as "07:00PM", but
on submission the time in the record is AM.


I found these two lines:

  var ISO = '{yyyy}-{MM}-{dd} {hh}:{mm}:{ss}';
  if (self.hasClass('time')) ISO = '{hh}:{mm}:{ss}';

Changing to HH:

  var ISO = '{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}';
  if (self.hasClass('time')) ISO = '{HH}:{mm}:{ss}';


seems to fix this problem.


And with that, my forms work and I get to go home!

Best,

-mg

--
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.

Reply via email to