From 1b884d2ef453b025da10ec856f829a34d0fbb411 Mon Sep 17 00:00:00 2001 From: Nicolas Turro Date: Wed, 28 Mar 2012 10:50:55 +0200 Subject: [PATCH] The oar GET_timezone call now also return the servers timezone. NT. --- sfa/senslab/OARrestapi.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 + -- 2.43.0