Skip to content

Commit 8c1e35a

Browse files
committed
fix
1 parent e7d15f0 commit 8c1e35a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pandas/_libs/tslibs/tzconversion.pyx

+3
Original file line numberDiff line numberDiff line change
@@ -416,6 +416,9 @@ timedelta-like}
416416

417417
else:
418418
delta_idx = bisect_right_i8(info.tdata, new_local, info.ntrans)
419+
if (shift_forward or shift_delta > 0) and \
420+
info.deltas[delta_idx-1] >= 0:
421+
delta_idx_offset = 1
419422

420423
delta_idx = delta_idx - delta_idx_offset
421424
result[i] = new_local - info.deltas[delta_idx]

0 commit comments

Comments
 (0)