From: Nicolas Turro Date: Wed, 28 Mar 2012 08:50:55 +0000 (+0200) Subject: The oar GET_timezone call now also return the servers timezone. NT. X-Git-Tag: sfa-2.1-24~3^2~194 X-Git-Url: http://git.onelab.eu/?p=sfa.git;a=commitdiff_plain;h=1b884d2ef453b025da10ec856f829a34d0fbb411 The oar GET_timezone call now also return the servers timezone. NT. --- diff --git a/sfa/senslab/OARrestapi.py b/sfa/senslab/OARrestapi.py index c0d4df65..7799f99b 100644 --- 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 +