Both do not work. So I just got this:
import datetime as dt default = dt.datetime.utcnow() On Wed, Feb 19, 2020, 12:49 Alexander Hoch <a.hoc...@gmail.com> wrote: > Try request.now with the function call (). only "default=request.now" and > "update=request.now" > > Am Mi., 19. Feb. 2020 um 10:24 Uhr schrieb Maurice Waka < > mauricew...@gmail.com>: > >> Hello. >> >> I'm still stuck at this error: >> >> Field('modified_on', 'datetime', default=request.now(), >> update=request.now()), >> File "/usr/local/lib/python3.6/dist-packages/bottle.py", line 1400, in >> __getattr__ >> raise AttributeError('Attribute %r not defined.' % name) >> AttributeError: Attribute 'now' not defined. >> >> >> >> Any help out there? >> Regards >> >> -- >> 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. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/web2py/4e1fba9b-a388-4846-a101-c40d7557a9b1%40googlegroups.com >> <https://groups.google.com/d/msgid/web2py/4e1fba9b-a388-4846-a101-c40d7557a9b1%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> > -- > 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 a topic in the > Google Groups "web2py-users" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/web2py/aAYTHke4pG4/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > web2py+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/web2py/CAHAvb9yPqUb%2Bqf7d%2BVjP45Dj3-%3Dr-jGh5jMbVaLFi7MokNG-wQ%40mail.gmail.com > <https://groups.google.com/d/msgid/web2py/CAHAvb9yPqUb%2Bqf7d%2BVjP45Dj3-%3Dr-jGh5jMbVaLFi7MokNG-wQ%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > -- 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. To view this discussion on the web visit https://groups.google.com/d/msgid/web2py/CALkNK54PVHgZO%2BH3BvR6KrdeLvP%3DFa7JGaE3o%3Dcu-duVeag%3Dsg%40mail.gmail.com.