Try default='00:00 AM'. Though it looks like this could be a bug -- please
submit an issue: http://code.google.com/p/web2py/issues/list
Anthony
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
BTW, I'm using web2py source version 1.99.7 on a winxp computer (also
tested on a win7 computer)
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
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
3 matches
Mail list logo