You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by br...@apache.org on 2012/10/02 23:30:28 UTC

[8/34] git commit: [#4785] ticket:163 s/fromtimestamp/utcfromtimestamp

[#4785] ticket:163 s/fromtimestamp/utcfromtimestamp


Project: http://git-wip-us.apache.org/repos/asf/incubator-allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-allura/commit/17534220
Tree: http://git-wip-us.apache.org/repos/asf/incubator-allura/tree/17534220
Diff: http://git-wip-us.apache.org/repos/asf/incubator-allura/diff/17534220

Branch: refs/heads/db/4968
Commit: 1753422033223d01aa124c96c22bcbedb5d6075d
Parents: c173472
Author: Igor Bondarenko <je...@gmail.com>
Authored: Fri Sep 7 16:36:52 2012 +0300
Committer: Cory Johns <jo...@geek.net>
Committed: Tue Oct 2 15:12:31 2012 +0000

----------------------------------------------------------------------
 .../forgeshorturl/command/migrate_urls.py          |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/17534220/ForgeShortUrl/forgeshorturl/command/migrate_urls.py
----------------------------------------------------------------------
diff --git a/ForgeShortUrl/forgeshorturl/command/migrate_urls.py b/ForgeShortUrl/forgeshorturl/command/migrate_urls.py
index 9d2e2d4..3019308 100644
--- a/ForgeShortUrl/forgeshorturl/command/migrate_urls.py
+++ b/ForgeShortUrl/forgeshorturl/command/migrate_urls.py
@@ -46,8 +46,8 @@ class MigrateUrls(ShortUrlCommand):
             url.url = h.really_unicode(row['url'])
             url.description = h.really_unicode(row['description'])
             url.private = row['private'] == 'Y'
-            url.created = datetime.fromtimestamp(row['create_time'])
-            url.last_updated = datetime.fromtimestamp(row['edit_time'])
+            url.created = datetime.utcfromtimestamp(row['create_time'])
+            url.last_updated = datetime.utcfromtimestamp(row['edit_time'])
             url.project_id = p._id
             user = M.User.query.get(sfx_userid=row['create_user'])
             user_id = user._id if user else M.User.anonymous()._id