incubator-allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wwitz...@apache.org
Subject git commit: [#7046] Using different published date format. Fixes FF/Mozilla
Date Wed, 15 Jan 2014 23:25:22 GMT
Updated Branches:
  refs/heads/ww/7046 d9e4e686e -> 7e880b45f (forced update)


[#7046] Using different published date format. Fixes FF/Mozilla


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

Branch: refs/heads/ww/7046
Commit: 7e880b45fa34c1df7ff6c02f44bcad4913de343b
Parents: 05f5804
Author: Wayne Witzel III <wwitzel@slashdotmedia.com>
Authored: Wed Jan 15 22:02:25 2014 +0000
Committer: Wayne Witzel III <wwitzel@slashdotmedia.com>
Committed: Wed Jan 15 23:25:06 2014 +0000

----------------------------------------------------------------------
 ForgeActivity/forgeactivity/main.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/7e880b45/ForgeActivity/forgeactivity/main.py
----------------------------------------------------------------------
diff --git a/ForgeActivity/forgeactivity/main.py b/ForgeActivity/forgeactivity/main.py
index a1bb21d..88441ca 100644
--- a/ForgeActivity/forgeactivity/main.py
+++ b/ForgeActivity/forgeactivity/main.py
@@ -16,6 +16,7 @@
 #       under the License.
 
 import logging
+import calendar
 
 from pylons import tmpl_context as c, app_globals as g
 from pylons import request, response
@@ -191,7 +192,7 @@ class ForgeActivityRestController(BaseController):
                 'activity_extras': {},
             },
             'timeline': [{
-                'published': '%s UTC' % a.published,
+                'published': calendar.timegm(a.published.timetuple) * 1000,
                 'actor': a.actor._deinstrument(),
                 'verb': a.verb,
                 'obj': a.obj._deinstrument(),


Mime
View raw message