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:
Skip the conversion to a local, timezone-aware datetime and instead leave everything in UTC.
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.
Coverage decreased (-0.01%) to 62.628% when pulling 2103e7796916965b3bc1341095598ae7b34d3c30 on r24mille:190_fix_pei_posix_timezone into 96d1d9b744025a8f394360be944e1575c11a453d on WattTime:master.
Luckily, as described in d4ac7ac the PEIClient's
timestamp
output in UTC was never wrong. However, there was an unnecessary timezone-awaredatetime
conversion to an incorrect local timezone. These commits:datetime
and instead leave everything in UTC.TZ_NAME
is now unused within the class, all PyISOBaseClient
implementations have it defined. So the correct POSIX-style timezone name is used.Fixes #190.