From 1704641270b075b34909ac9e54abfc4c60e750ae Mon Sep 17 00:00:00 2001 From: Konstantin Lebedev Date: Sat, 17 Feb 2024 23:40:58 +0300 Subject: [PATCH] Update datetimecolumn.py --- clickhouse_driver/columns/numpy/datetimecolumn.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/clickhouse_driver/columns/numpy/datetimecolumn.py b/clickhouse_driver/columns/numpy/datetimecolumn.py index 29ed5ff8..6b61abac 100644 --- a/clickhouse_driver/columns/numpy/datetimecolumn.py +++ b/clickhouse_driver/columns/numpy/datetimecolumn.py @@ -25,7 +25,8 @@ def apply_timezones_after_read(self, dt): ts = pd.to_datetime(dt, utc=True).tz_convert(timezone) ts = ts.tz_localize(None) return ts.to_numpy(self.datetime_dtype) - + + return dt def apply_timezones_before_write(self, items): if isinstance(items, pd.DatetimeIndex):