Permalink
Browse files

Switched to UTC Timestamp

  • Loading branch information...
1 parent 9927b84 commit acbe8a9ac34f6c263f5d9399530b5915a5ce75f0 @jplaverdure jplaverdure committed Nov 8, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 examples/versioning/history_meta.py
View
4 examples/versioning/history_meta.py
@@ -46,10 +46,10 @@ def _history_mapper(local_mapper):
if super_mapper:
super_fks.append(('version', super_history_mapper.local_table.c.version))
cols.append(Column('version', Integer, primary_key=True, autoincrement=False))
- cols.append(Column('changed', DateTime, default=datetime.datetime.now))
+ cols.append(Column('changed', DateTime, default=datetime.datetime.utcnow))
else:
cols.append(Column('version', Integer, primary_key=True, autoincrement=False))
- cols.append(Column('changed', DateTime, default=datetime.datetime.now))
+ cols.append(Column('changed', DateTime, default=datetime.datetime.utcnow))
if super_fks:
cols.append(ForeignKeyConstraint(*zip(*super_fks)))

0 comments on commit acbe8a9

Please sign in to comment.