Skip to content

Commit 00ee4c8

Browse files
committed
BUG: Fix dt64[non_nano] + offset rounding
1 parent 4436054 commit 00ee4c8

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

pandas/core/arrays/datetimes.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -838,11 +838,7 @@ def _add_offset(self, offset: BaseOffset) -> Self:
838838
result = result.normalize()
839839
result._freq = None
840840

841-
if (
842-
self.tz is not None
843-
and getattr(result.dtype, "tz", None) is None
844-
and res_unit == "ns"
845-
):
841+
if self.tz is not None:
846842
result = result.tz_localize(self.tz)
847843

848844
return result

0 commit comments

Comments
 (0)