Update comment regarding timezone inclusion for csv requests.

This commit is contained in:
2xmm
2020-10-22 10:56:29 -03:00
parent bba8a59341
commit 7e6af79adf

View File

@@ -201,7 +201,7 @@ class TiingoClient(RestClient):
prices.index = pd.to_datetime(prices.index) prices.index = pd.to_datetime(prices.index)
# Localize to UTC to ensure equivalence between data returned in json format and # Localize to UTC to ensure equivalence between data returned in json format and
# csv format. Data requested in csv format does not include a timezone. # csv format. Tiingo daily data requested in csv format does not include a timezone.
if prices.index.tz is None: if prices.index.tz is None:
prices.index = prices.index.tz_localize('UTC') prices.index = prices.index.tz_localize('UTC')