WattTime / pyiso

Python client libraries for ISO and other power grid data sources.
http://pyiso.readthedocs.org/
Other
237 stars 110 forks source link

Correct TZ_NAME in PEIClient #192

Closed r24mille closed 6 years ago

r24mille commented 6 years ago

Luckily, as described in d4ac7ac the PEIClient's timestamp output in UTC was never wrong. However, there was an unnecessary timezone-aware datetime conversion to an incorrect local timezone. These commits:

  1. Skip the conversion to a local, timezone-aware datetime and instead leave everything in UTC.
  2. Though TZ_NAME is now unused within the class, all PyISO BaseClient implementations have it defined. So the correct POSIX-style timezone name is used.

Fixes #190.

coveralls commented 6 years ago

Coverage Status

Coverage decreased (-0.01%) to 62.628% when pulling 2103e7796916965b3bc1341095598ae7b34d3c30 on r24mille:190_fix_pei_posix_timezone into 96d1d9b744025a8f394360be944e1575c11a453d on WattTime:master.