Skip to content

Commit

Permalink
Don't use dt.combine
Browse files Browse the repository at this point in the history
  • Loading branch information
di committed Oct 31, 2018
1 parent 8026d50 commit ab45724
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions forecast.py
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 ab45724

Please sign in to comment.