Hello everyone!
I'm prepopulating a form made with the FORM helper.
In the form I have 2 INPUTs of type DATETIME:
INPUT(_name='from', _class='datetime', requires = IS_DATETIME())
I'm prepolutaing this field with:
form.vars.from = request.now
and I'm getting something like this:
2015-04-14 19:31:36.242654this works OK if the locale is '
en' but when I have my browser with locale '
es'
the input should be prepopulated with the format
'%d/%m/%Y %H:%M:%S.mmmmmm' because web2py (somehow) knows that it must validate using '
es' locale.
So, the question is:
How can I prepopulate a datetime input field that pass validation in any locale?
Thanks!