On Monday, September 11, 2017 at 12:53:52 PM UTC-7, mweissen wrote: > > What is the type of the result of a Field(...;'datetime') ? > > I think, it should be "datetime" (and I am shure it has been in version > 2.14.x), but web2py 2.15.4 delivers a "str". > > Which DB engine are you using? In SQLite, a string is the native implementation, no?
> def dttest2(): > form = SQLFORM.factory(Field('startzeit', 'datetime')) > if form.process().accepted: > return \ > str(isinstance(form.vars.startzeit,datetime.datetime)) > return dict(form=form) > > > The result is "False" > > /dps -- 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.