long2ice / asynch

An asyncio ClickHouse Python Driver with native (TCP) interface support.
https://github.com/long2ice/asynch
Apache License 2.0
186 stars 43 forks source link

fix timezone warning #27

Closed centum closed 2 years ago

centum commented 2 years ago

Suppress warning:

/Users/user/Library/Caches/pypoetry/virtualenvs/asynch-56aJZi1l-py3.10/lib/python3.10/site-packages/asynch/proto/columns/datetimecolumn.py:199: PytzUsageWarning: The zone attribute is specific to pytz's interface; please migrate to a new time zone provider. For more details on how to do so, see https://pytz-deprecation-shim.readthedocs.io/en/latest/migration.html
  local_timezone = get_localzone().zone

Getting a time zone’s name ref: https://pytz-deprecation-shim.readthedocs.io/en/latest/migration.html#getting-a-time-zone-s-name

long2ice commented 2 years ago

Thanks!