Thanks for the quick reply Michael. I'll implement the workaround as
suggested and wait for ticket #1985 to be implemented.

On Nov 25, 3:11 pm, Michael Bayer <[email protected]> wrote:
> I would qualify that as a missing feature.   The "timezone=True" flag is so 
> far only implemented for Postgresql's TIMESTAMP type which features this 
> option natively.    SQLite's type could support this flag as well so I've 
> added ticket #1985.
>
> For now you'd have to subclass sqlite.DATETIME and provide an alternate 
> bind/result processor.
>
> On Nov 25, 2010, at 9:03 AM, Pedro Romano wrote:
>
> > Needing timezone aware 'DateTime' columns in my 'SQLite' database, I
> > noticed that the aware 'datetime's I was storing in the SQLite
> > database in the 'DateTime(timezone=True)' columns were being stored as
> > naive timestamps without timezone information.
>
> > I also checked that in the source code
> > ('sqlalchemy.dialects.sqlite.DATETIME' class) type adapter
> > implementation the conversion to string is omitting the timestamp, so
> > obviously any 'datetime's with timezone information will lose it when
> > persisted by 'SQLAlchemy'. Is this by design?
>
> > Thanks in advance for any feedback on this issue.
>
> > --Pedro.
>
> > --
> > You received this message because you are subscribed to the Google Groups 
> > "sqlalchemy" 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 
> > athttp://groups.google.com/group/sqlalchemy?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" 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/sqlalchemy?hl=en.

Reply via email to