Re: [sqlalchemy] UTC timestamps for Column's server_default?

2015-07-24 Thread Randy Syring
So helpful! Thanks. *Randy Syring* Chief Executive Developer Direct: 502.276.0459 Office: 812.285.8766 Level 12 https://www.level12.io/ On 07/24/2015 03:45 PM, Mike Bayer wrote: On 7/24/15 3:17 PM, Randy Syring wrote: I have some generic timestamp columns as part of a mixin. I'd like for

Re: [sqlalchemy] UTC timestamps for Column's server_default?

2015-07-24 Thread Mike Bayer
On 7/24/15 3:17 PM, Randy Syring wrote: I have some generic timestamp columns as part of a mixin. I'd like for these columns to have server defaults of the current UTC time. If I wanted local time, I could just do: created_ts = Column(DateTime, ...,

[sqlalchemy] UTC timestamps for Column's server_default?

2015-07-24 Thread Randy Syring
I have some generic timestamp columns as part of a mixin. I'd like for these columns to have server defaults of the current UTC time. If I wanted local time, I could just do: created_ts = Column(DateTime, ..., server_default=sasql.text('CURRENT_TIMESTAMP')) The problem I'm running into is