Problem setting timezone=False in Columns

Issue #301 resolved
Former user created an issue

I tried using Turbogears 1.01b with SQLAlchemy and got an error using the identity framework with Postgresql. It was suggested to add "timezone=False" to the Column declarations, but I think SQLAlchemy does not recognize that parameter properly.

I think the following line is missing in Column's init method in schema.py:

self.timezone = kwargs.pop('timezone', True)

Or did I overlook something?

Comments (3)

  1. Mike Bayer repo owner

    Column doesnt have a timezone attribute. Youre probably thinking of the Time and DateTime types:

    Column('somedate', DateTime(timezone=False))
    

    so the TurboGears docs likely need updating for this.

  2. Log in to comment