Skip to content

Commit 37ae7fb

Browse files
vnlitvinovanmyachev
authored andcommitted
Revert bandaid workaround
1 parent 5f2a8f0 commit 37ae7fb

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
@@ -604,7 +604,6 @@ def to_datetime(arg, errors='raise', dayfirst=False, yearfirst=False,
604604
elif isinstance(arg, ABCIndexClass):
605605
cache_array = _maybe_cache(arg, format, cache, convert_listlike)
606606
if not cache_array.empty:
607-
errors = 'ignore' if not utc else errors
608607
result = _convert_and_box_cache(arg, cache_array, box, errors,
609608
name=arg.name)
610609
else:
@@ -613,7 +612,6 @@ def to_datetime(arg, errors='raise', dayfirst=False, yearfirst=False,
613612
elif is_list_like(arg):
614613
cache_array = _maybe_cache(arg, format, cache, convert_listlike)
615614
if not cache_array.empty:
616-
errors = 'ignore' if not utc else errors
617615
result = _convert_and_box_cache(arg, cache_array, box, errors)
618616
else:
619617
result = convert_listlike(arg, box, format)

0 commit comments

Comments
 (0)