On time series data returned from the API, the util.polish() routine may apply an incorrect timezone offset to the date time string when compared to the data["Meta Data"]["6. Time Zone"] attribute returned in the raw data.
Example
Tested on v2.3.0
Raw Response
Notice the time zone is US/Eastern and that means the series key is 18th at 8pm Eastern time
Polished Response
Notice the series key is 18th at 7pm with a Zulu zone, or UTC. This will mean a 5 hour difference to the correct time of the data point.
On time series data returned from the API, the
util.polish()
routine may apply an incorrect timezone offset to the date time string when compared to thedata["Meta Data"]["6. Time Zone"]
attribute returned in the raw data.Example
Tested on
v2.3.0
Raw Response Notice the time zone is
US/Eastern
and that means the series key is 18th at 8pm Eastern timePolished Response Notice the series key is 18th at 7pm with a Zulu zone, or UTC. This will mean a 5 hour difference to the correct time of the data point.
Ideally the ISO string should contain the offset to UTC, e.g.
2022-07-18T20:00:00.000-04:00
, so it can be correctly parsed.Testing code