Skip to content

Commit

Permalink
Merge pull request #2388 from target/cal-sub-duration
Browse files Browse the repository at this point in the history
calendar subscription: increase calculated shifts from 1 month to 1 year
  • Loading branch information
mastercactapus authored May 11, 2022
2 parents 28b67d3 + 8108e5f commit b51e030
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion calsub/http.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ func (s *Store) ServeICalData(w http.ResponseWriter, req *http.Request) {
return
}

shifts, err := s.oc.HistoryBySchedule(ctx, cs.ScheduleID, n, n.AddDate(0, 1, 0))
shifts, err := s.oc.HistoryBySchedule(ctx, cs.ScheduleID, n, n.AddDate(1, 0, 0))
if errutil.HTTPError(ctx, w, err) {
return
}
Expand Down

0 comments on commit b51e030

Please sign in to comment.