Skip to content

Commit

Permalink
chore(forecast): Change default forecast to 90 days
Browse files Browse the repository at this point in the history
  • Loading branch information
elliotcourant committed Apr 18, 2024
1 parent c72eb81 commit 6dd9e3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/controller/forecast.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ func (c *Controller) getForecast(ctx echo.Context) error {
end := ctx.QueryParam("end")
if strings.TrimSpace(end) == "" {
log.Trace("no end date specified for forecast, will default to 31 days")
endDate = now.AddDate(0, 0, 31).UTC()
endDate = now.AddDate(0, 0, 90).UTC()
} else {
var err error
endDate, err = time.Parse(time.RFC3339, end)
Expand Down

0 comments on commit 6dd9e3c

Please sign in to comment.