diff --git a/app/controllers/entries_controller.rb b/app/controllers/entries_controller.rb index f5c3fea..de31e06 100644 --- a/app/controllers/entries_controller.rb +++ b/app/controllers/entries_controller.rb @@ -95,7 +95,7 @@ class EntriesController < ApplicationController .maximum(:date) #start_date = [last_entry_date, Date.today].compact.max - start_date = Date.today + start_date = Date.current if weekly_hours > 0 && hours_remaining > 0 weeks_remaining = (hours_remaining / weekly_hours).ceil @estimated_end_by_typ_art[typ][art] = start_date + weeks_remaining.weeks