[Zope-DB] Problem with TALES DateTime conversion

Charlie Clark charlie@begeistert.org
Fri, 14 Mar 2003 12:17:03 +0100


> This is not a TALES error (or problem):

that's what I think. I've posted to the psycopg list as well.
 
>    Your database adapter does not represent date values as DateTime 
>    objects (and therefore, you cannot use "strftime").
> 
> Check what type is used for data values.
> 
>   You use an External Method for this which
>   returns "str(type(aDateObject))".

It just gives me 'instance' both for DateTime objects which I can convert 
using strftime and Date objects which I can't :-/

Thanx for the tip. What can I do now? Is there a workaround till the DA is 
fixed?

Charlie