googlefinance-client-python
googlefinance-client-python copied to clipboard
fixed time zone bug
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.
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,...