I use postgres and sqlalchemy with python 3.7
I've got a column with type "time with timezone" and try to insert a new line.
TAB = Table("tab", METADATA,
# ...
Column('created', DateTime(timezone=True), default=datetime.now)
)
Now I try to insert a new line. I got this message:
(psycopg2.ProgrammingError) column "created" is of type time with time zone but expression is of type timestamp without time zone
Has anybody an idea what I have to do?
Thanks!