[web2py] Re: 'datetime.datetime' has no attribute 'datetime' in scheduler

2014-02-20 Thread Niphlod
that is an unfortunate misnaming in the datetime module the datetime module holds: - datetime - timedelta - tzinfo - time as "submodules". web2py uses import datetime and then it uses datetime.datetime.now() while your code probably does from datetime import datetime and then uses datetim

Re: [web2py] Re: 'datetime.datetime' has no attribute 'datetime' in scheduler

2014-02-21 Thread Manuele Pesenti
Il 20/02/14 21:51, Niphlod ha scritto: > that is an unfortunate misnaming in the datetime module > > the datetime module holds: > - datetime > - timedelta > - tzinfo > - time > as "submodules". Thanks Niphold! That was the problem. I user request.now instead of datetime.now and just import timedelt