Skip to content

Commit 5e2b135

Browse files
committed
Support tzlocal>=3.0 #166
1 parent d6b263e commit 5e2b135

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

clickhouse_driver/columns/datetimecolumn.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ def create_datetime_column(spec, column_options):
194194
else:
195195
if not context.settings.get('use_client_time_zone', False):
196196
try:
197-
local_timezone = get_localzone().zone
197+
local_timezone = get_localzone().key
198198
except Exception:
199199
local_timezone = None
200200

clickhouse_driver/columns/numpy/datetimecolumn.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ def create_numpy_datetime_column(spec, column_options):
125125
# As Numpy do not use local timezone for converting timestamp to
126126
# datetime we need always detect local timezone for manual converting.
127127
try:
128-
local_timezone = get_localzone().zone
128+
local_timezone = get_localzone().key
129129
except Exception:
130130
pass
131131

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ def read_version():
133133
python_requires='>=3.4.*, <4',
134134
install_requires=[
135135
'pytz',
136-
'tzlocal<3.0'
136+
'tzlocal>=3.0'
137137
],
138138
ext_modules=extensions,
139139
extras_require={

0 commit comments

Comments
 (0)