From: Aleksey Maksimov Date: Wed, 12 Jun 2013 14:53:43 +0000 (+0800) Subject: Changed get_timestamp to return UTC time X-Git-Tag: v0.2.23~212^2^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d56608adc248564ad5db6d247b31deae1d026737;p=tools%2Fpython-jenkinsapi.git Changed get_timestamp to return UTC time --- diff --git a/jenkinsapi/build.py b/jenkinsapi/build.py index b35e653..a787ba2 100644 --- a/jenkinsapi/build.py +++ b/jenkinsapi/build.py @@ -268,8 +268,11 @@ class Build(JenkinsBase): return all_actions def get_timestamp(self): + ''' + Returns build timestamp in UTC + ''' # Java timestamps are given in miliseconds since the epoch start! - return datetime.datetime(*time.localtime(self._data['timestamp']/1000.0)[:6]) + return datetime.datetime(*time.gmtime(self._data['timestamp']/1000.0)[:6]) def stop(self): """