[Zope-DB] Problem with TALES DateTime conversion
Dieter Maurer
dieter@handshake.de
Fri, 14 Mar 2003 21:57:07 +0100
Charlie Clark wrote at 2003-3-14 12:17 +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 :-/
Sorry, I should have known that.
Try "str(aDateObject.__class__)", again inside your External Method.
Dieter