The oar GET_timezone call now also return the servers timezone. NT.
authorNicolas Turro <Nicolas.Turro@inria.fr>
Wed, 28 Mar 2012 08:50:55 +0000 (10:50 +0200)
committerNicolas Turro <Nicolas.Turro@inria.fr>
Wed, 28 Mar 2012 08:50:55 +0000 (10:50 +0200)
sfa/senslab/OARrestapi.py

index c0d4df6..7799f99 100644 (file)
@@ -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
+