From 41362bc0bde05ffc582143aac987733d173003e0 Mon Sep 17 00:00:00 2001 From: dutta-rohan <94938704+dutta-rohan@users.noreply.github.com> Date: Fri, 4 Mar 2022 15:43:37 -0800 Subject: [PATCH] Add files via upload modifying phone tools datetime format with timezone info. --- tools/phone_tools.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/phone_tools.py b/tools/phone_tools.py index 09534d1d9..aa7581922 100644 --- a/tools/phone_tools.py +++ b/tools/phone_tools.py @@ -25,7 +25,7 @@ class PhoneTools: # Creates a reservation based on the deviceID. # Returns reservationId if the reservation is successful.Returns an empty string if the request is not successful def reserve(self): - pattern = '%d.%m.%Y %H:%M:%S' + pattern = '%d.%m.%Y-%H:%M:%S%z' startTime = int(time.mktime(time.strptime(self.startTime, pattern))) * 1000 endTime = int(time.mktime(time.strptime(self.endTime, pattern))) * 1000 perfecto_mobile_url = "https://{}.perfectomobile.com/services/reservations?Operation=create&securityToken={}&StartTime={}&EndTime={}&ResourceIds={}".format(