Hi,
I noticed an error in the GQL handler that prevents using datetime
with GAE.

In the GQL.py, function dateobj_to_datetime is dedicated to convert a
date or time object into a datetime object.

The issue is that the first test:

if isinstance(object, datetime.date):
        object = datetime.datetime(object.year, object.month,
                                   object.day)

is incorrect, because datetime.datetime inherits from datetime.date,
and therefore the code intended solely for datetime.date is also
applied to datetime.datetime. With the current implementation, hour,
minutes and seconds are lost.

Hopefully someone can make the change for a future release of web2py.

Christophe

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to