SureshKekan / salesforce-python-toolkit

Automatically exported from code.google.com/p/salesforce-python-toolkit
GNU Lesser General Public License v3.0
0 stars 0 forks source link

It is not clear how the timezone is handled. Returned date times have no tzinfo set hence it is impossible to know what to do #18

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago

s = s.login(ep['username'], ep['password'], ep['secret_key'])
d = s.queryAll("select CREATEDDATE, LASTMODIFIEDDATE from opportunity where 
id='id'")

What is the expected output? What do you see instead?
I expected the dates to be in UTC all the time.  However there is no tzinfo set 
on them and they appear to be detecting the client timezone somehow.  This is 
making it impossible to write a client that needs to work on multiple 
timezones. 

What version of the product are you using? On what operating system?
I tried both mac and Ubuntu.  

Please provide any additional information below.
Any place to look for specifically, I can try and create a patch for this. 

Original issue reported on code.google.com by eswar.va...@gmail.com on 9 Oct 2013 at 7:19