Skip to content

Commit

Permalink
Merge pull request #28 from di/fix-forecast-bug
Browse files Browse the repository at this point in the history
Don't use dt.combine
  • Loading branch information
xVir authored Oct 31, 2018
2 parents 8026d50 + ab45724 commit 47b245c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions forecast.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,7 @@ def __get_forecast(self):

# Get the furthest date in the future we can get a forecast for
max_forecast_date = dt.now().date() + timedelta(days=MAX_FORECAST_LEN)
furthest_date_requested = dt.combine(date_start,
timedelta(days=forecast_length))
furthest_date_requested = date_start + timedelta(days=forecast_length)

# Check to see that the forecast dates requested are not too far into
# the future
Expand Down

0 comments on commit 47b245c

Please sign in to comment.