projects
/
tools
/
python-jenkinsapi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c5f72fd
)
Changed get_timestamp to return UTC time
author
Aleksey Maksimov
<ctpeko3a@gmail.com>
Wed, 12 Jun 2013 14:53:43 +0000
(22:53 +0800)
committer
Aleksey Maksimov
<ctpeko3a@gmail.com>
Wed, 12 Jun 2013 14:53:43 +0000
(22:53 +0800)
jenkinsapi/build.py
patch
|
blob
|
history
diff --git
a/jenkinsapi/build.py
b/jenkinsapi/build.py
index
b35e653
..
a787ba2
100644
(file)
--- 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.
local
time(self._data['timestamp']/1000.0)[:6])
+ return datetime.datetime(*time.
gm
time(self._data['timestamp']/1000.0)[:6])
def stop(self):
"""