BUG: DateOffset weekday around DST produces unexpected results · Issue #5175 · pandas-dev/pandas (original) (raw)
I want next Monday:
def next_week_start(t):
return t + pd.DateOffset(weekday=0)
But for DST (fall back is Sunday 2013-11-03):
>> next_week_start(pd.Timestamp("2013-10-30", tz="US/Pacific"))
Timestamp('2013-11-03 23:00:00-0800', tz='US/Pacific')
which is Sunday at 11pm, not Monday.