We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e7d15f0 commit 8c1e35aCopy full SHA for 8c1e35a
pandas/_libs/tslibs/tzconversion.pyx
@@ -416,6 +416,9 @@ timedelta-like}
416
417
else:
418
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
422
423
delta_idx = delta_idx - delta_idx_offset
424
result[i] = new_local - info.deltas[delta_idx]
0 commit comments