I tested the datetime module in python 2.7 with the following command: "datetime.datetime.strptime('12:00 AM', '%I:%M %p').time()" and the result was correct: "datetime.time(0, 0)" which translates to 12am. So the problem does appear to be with web2py. Any Suggestions.
On Tuesday, March 20, 2012 8:58:38 AM UTC-4, Youngblood wrote: > > I have an input field with a default value of "12:00 AM". In the database > the field type is set to 'time'. After you submit this form the > response.vars.Start value is now datetime.time(12,0) which translates to > 12:00 PM. Is there a fix so it will correctly convert to 12:00 AM? > > Thanks, > David Youngblood >