changeset 264:f733ebc095cc

try utc version of this function
author Jeff Hammel <jhammel@mozilla.com>
date Wed, 28 Dec 2011 21:12:49 -0800
parents a13749f19067
children b854e599bf85
files autobot/changes/poller.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/autobot/changes/poller.py	Wed Dec 28 21:06:58 2011 -0800
+++ b/autobot/changes/poller.py	Wed Dec 28 21:12:49 2011 -0800
@@ -198,7 +198,7 @@
         # (required in buildbot 0.8.5)
         timestamp = self.commitInfo['timestamp']
         if isinstance(timestamp, int) or isinstance(timestamp, float):
-            timestamp = datetime.fromtimestamp(timestamp)
+            timestamp = datetime.utcfromtimestamp(timestamp)
 
         self.log('timestamp: %s' % timestamp)