I am trying to convert a timestamp in the format of 2020-07-27T23:00:53+00:00 to milliseconds using the following line of code
utc_time = datetime.datetime.strptime('2020-07-27T23:00:53+00:00', '%Y-%m-%dT%H:%M:%S%z')
milsec = utc_time.timestamp() * 1000
It works fine on my local system but when I try to run the code on a remote system which is in the same timezone as I am, I get the error
time data '2020-07-27T23:00:53+00:00' does not match format '%Y-%m-%dT%H:%M:%S%z'.
Is there anything that I should be aware of here? Appreciate any help.