Solid-Energy-Systems / NewareNDA

Python module and command line tool for reading and converting Neware nda and ndax battery cycling data files.
BSD 3-Clause "New" or "Revised" License
15 stars 8 forks source link

Some timestamps are converted to local time #57

Closed d-cogswell closed 3 months ago

d-cogswell commented 5 months ago

NewareNDA sometimes calls datetime.fromtimestamp() which is time-zone-aware, and so some dates are converted to the user's time zone. Since no time zone information is stored in nda/ndax, these calls should probably be replaced with datetime.utcfromtimestamp() which is naive.