git://git.onelab.eu
/
sfa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
35eb873
)
The oar GET_timezone call now also return the servers timezone. NT.
author
Nicolas Turro
<Nicolas.Turro@inria.fr>
Wed, 28 Mar 2012 08:50:55 +0000
(10:50 +0200)
committer
Nicolas Turro
<Nicolas.Turro@inria.fr>
Wed, 28 Mar 2012 08:50:55 +0000
(10:50 +0200)
sfa/senslab/OARrestapi.py
patch
|
blob
|
history
diff --git
a/sfa/senslab/OARrestapi.py
b/sfa/senslab/OARrestapi.py
index
c0d4df6
..
7799f99
100644
(file)
--- a/
sfa/senslab/OARrestapi.py
+++ b/
sfa/senslab/OARrestapi.py
@@
-225,9
+225,10
@@
class OARGETParser:
def ParseTimezone(self) :
api_timestamp=self.raw_json['api_timestamp']
+ api_tz=self.raw_json['timezone']
#readable_time = strftime("%Y-%m-%d %H:%M:%S", gmtime(float(api_timestamp)))
- return api_timestamp
+ return api_timestamp
,api_tz
def ParseJobs(self) :
self.jobs_list = []
@@
-417,4
+418,4
@@
class OARGETParser:
print>>sys.stderr, "\r\n OARGetParse __init__ : ERROR_REQUEST " ,request
-
\ No newline at end of file
+