This one should be dt_to_utc, not db_to_utc, I believe
authorChristopher Allan Webber <cwebber@dustycloud.org>
Wed, 18 Feb 2015 01:42:11 +0000 (19:42 -0600)
committerChristopher Allan Webber <cwebber@dustycloud.org>
Wed, 18 Feb 2015 01:42:11 +0000 (19:42 -0600)
mediagoblin/db/migrations.py

index 3102801ec2dd73adf3009ac0f22c660fcb9d8dac..886632de06ab72f6157aa9824fac539a8b068604 100644 (file)
@@ -1221,7 +1221,7 @@ def datetime_to_utc(db):
     notification_table = inspect_table(metadata, "core__notifications")
     for notification in db.execute(notification_table.select()):
         db.execute(notifiction_table.update().values(
-            created=db_to_utc(notification.created)
+            created=dt_to_utc(notification.created)
         ).where(notification_table.c.id==notification.id))
 
     # Convert ReportBase