Index: app/controllers/timelog_controller.rb =================================================================== --- app/controllers/timelog_controller.rb (revision 3625) +++ app/controllers/timelog_controller.rb (working copy) @@ -278,7 +278,7 @@ @from = Date.today - 7 - (Date.today.cwday - 1)%7 @to = @from + 6 when '7_days' - @from = Date.today - 7 + @from = Date.today - 6 @to = Date.today when 'current_month' @from = Date.civil(Date.today.year, Date.today.month, 1) @@ -287,7 +287,7 @@ @from = Date.civil(Date.today.year, Date.today.month, 1) << 1 @to = (@from >> 1) - 1 when '30_days' - @from = Date.today - 30 + @from = Date.today - 29 @to = Date.today when 'current_year' @from = Date.civil(Date.today.year, 1, 1) Index: test/functional/timelog_controller_test.rb =================================================================== --- test/functional/timelog_controller_test.rb (revision 3625) +++ test/functional/timelog_controller_test.rb (working copy) @@ -342,7 +342,7 @@ assert_template 'details' assert_not_nil assigns(:entries) assert_not_nil assigns(:total_hours) - assert_equal Date.today - 7, assigns(:from) + assert_equal Date.today - 6, assigns(:from) assert_equal Date.today, assigns(:to) end