]> source.dussan.org Git - redmine.git/commitdiff
Fixed: last day of the month not included in project activity
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Mon, 30 Apr 2007 18:03:42 +0000 (18:03 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Mon, 30 Apr 2007 18:03:42 +0000 (18:03 +0000)
git-svn-id: http://redmine.rubyforge.org/svn/trunk@493 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/controllers/projects_controller.rb

index ffc71ce1f74d58a1b31d08facb6b8882890013a4..0f68f8006ebebe787a19b06b275ea9d06691d90b 100644 (file)
@@ -462,7 +462,7 @@ class ProjectsController < ApplicationController
     @month ||= Date.today.month
 
     @date_from = Date.civil(@year, @month, 1)
-    @date_to = (@date_from >> 1)-1
+    @date_to = @date_from >> 1
     
     @events_by_day = {}