Skip to content

Commit 493a9e0

Browse files
committed
fix for #263
1 parent 03bb331 commit 493a9e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plotly_resampler/figure_resampler/figure_resampler_interface.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ def _check_update_trace_data(
325325
):
326326
# is faster to escape the loop here than check inside the hasattr if
327327
continue
328-
elif pd.core.dtypes.common.is_datetime64tz_dtype(hf_trace_data[k]):
328+
elif isinstance(hf_trace_data[k], pd.DatetimeTZDtype):
329329
# When we use the .values method, timezone information is lost
330330
# so convert it to pd.DatetimeIndex, which preserves the tz-info
331331
hf_trace_data[k] = pd.Index(hf_trace_data[k])

0 commit comments

Comments
 (0)