Skip to content

Commit

Permalink
Update datetimecolumn.py
Browse files Browse the repository at this point in the history
  • Loading branch information
xzkostyan authored Feb 17, 2024
1 parent cb29028 commit 1704641
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion clickhouse_driver/columns/numpy/datetimecolumn.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 1704641

Please sign in to comment.