Skip to content

Commit 9555ac3

Browse files
committed
Revert bandaid workaround
1 parent 5398783 commit 9555ac3

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

pandas/core/tools/datetimes.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -605,7 +605,6 @@ def to_datetime(arg, errors='raise', dayfirst=False, yearfirst=False,
605605
elif isinstance(arg, ABCIndexClass):
606606
cache_array = _maybe_cache(arg, format, cache, convert_listlike)
607607
if not cache_array.empty:
608-
errors = 'ignore' if not utc else errors
609608
result = _convert_and_box_cache(arg, cache_array, box, errors,
610609
name=arg.name)
611610
else:
@@ -614,7 +613,6 @@ def to_datetime(arg, errors='raise', dayfirst=False, yearfirst=False,
614613
elif is_list_like(arg):
615614
cache_array = _maybe_cache(arg, format, cache, convert_listlike)
616615
if not cache_array.empty:
617-
errors = 'ignore' if not utc else errors
618616
result = _convert_and_box_cache(arg, cache_array, box, errors)
619617
else:
620618
result = convert_listlike(arg, box, format)

0 commit comments

Comments
 (0)