gusutabopb / aioinflux

Asynchronous Python client for InfluxDB
MIT License
159 stars 31 forks source link

serialisation.mapping - bugfix datetime objects #34

Open miili opened 3 years ago

miili commented 3 years ago

datetime objects were handled incorrectly. This resulted in a time offset from UTC.

This correct implementation assumes UTC time, if no tzinfo object is attached to the datetime. Further the offset is now taken from the tzinfo object.