googlefinance-client-python icon indicating copy to clipboard operation
googlefinance-client-python copied to clipboard

fixed time zone bug

Open fulifeng opened this issue 7 years ago • 1 comments

The current version of client is using the default timezone to encode a time string from the timestamp returned. It causes the encoded time string as a local one since the default timezone in python is localized. For example, if I'm in UTC+8, the encoded time string will be about 12/13 hours earlier than the real one. So I add a timezone parameter for the datetime.fromtimestamp function.

fulifeng avatar Dec 12 '17 14:12 fulifeng

Just a question to see if I understand correctly : the time zone used in the bug fix if only valid for exchange localized in America/New_York ?

What about exchanges localized in Europe, India,...

troymaclure avatar Dec 26 '17 15:12 troymaclure