Closed
Description
In [3]: pd.__version__
Out[3]: '0.24.0.dev0+1040.g24bce1a5f'
In [4]: pd.to_datetime([1], unit='s', box=True, utc=True, errors='ignore')
Out[4]: DatetimeIndex(['1970-01-01 00:00:01'], dtype='datetime64[ns]', freq=None)
It appears the tz argument is missing from the output here:
pandas/pandas/core/tools/datetimes.py
Line 215 in 24bce1a
Expected Output
In [4]: pd.to_datetime([1], unit='s', box=True, utc=True, errors='ignore')
Out[4]: DatetimeIndex(['1970-01-01 00:00:01+00:00'], dtype='datetime64[ns, UTC]', freq=None)