Skip to content
4 changes: 2 additions & 2 deletions pandas/core/tools/datetimes.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
iNaT,
nat_strings,
parsing,
timezones,
timezones as libtimezones,
)
from pandas._libs.tslibs.parsing import (
DateParseError,
Expand Down Expand Up @@ -402,7 +402,7 @@ def _convert_listlike_datetimes(
# NB: this must come after unit transformation
orig_arg = arg
try:
arg, _ = maybe_convert_dtype(arg, copy=False, tz=timezones.maybe_get_tz(tz))
arg, _ = maybe_convert_dtype(arg, copy=False, tz=libtimezones.maybe_get_tz(tz))
except TypeError:
if errors == "coerce":
npvalues = np.array(["NaT"], dtype="datetime64[ns]").repeat(len(arg))
Expand Down