Same code using storage.sqlite is ok but when I switched to MongoDB which
intent to use in future, the error comes up.

On Thu, 8 Nov 2018, 11:33 Dave S <[email protected] wrote:

>
>
> On Wednesday, November 7, 2018 at 3:27:16 PM UTC-8, 黄祥 wrote:
>>
>> from error traceback seems like must convert the str to datetime.date
>> ref:
>> https://stackoverflow.com/questions/466345/converting-string-into-datetime
>>
>> best regards,
>> stifan
>>
>
> From the traceback, it's not clear to me if the "str" is from  Maurice's
> code, or the Mongo adapter.  One way to check would be to use sqlite3 for a
> trial.
>
> BTW, the request object has a datetime object in it (request.now)
> although I also have code that uses datetime.datetime.now().
>
> /dps
>
>
> /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 a topic in the
> Google Groups "web2py-users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/web2py/AdcoDH7_M-c/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to