summaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2017-01-07 07:51:52 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2017-01-07 07:51:52 +0000
commit4ad24a22509ab36fd5e542439722ad2079ed1b92 (patch)
tree6cad31b86599a96f26e9dcf02eabb24ee7a9cf0a /app
parent01e985eb0adaf5d624ce5a0ead7838758fd59e0d (diff)
downloadredmine-4ad24a22509ab36fd5e542439722ad2079ed1b92.tar.gz
redmine-4ad24a22509ab36fd5e542439722ad2079ed1b92.zip
Merged r16138 (#14658).
git-svn-id: http://svn.redmine.org/redmine/branches/3.3-stable@16139 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app')
-rw-r--r--app/controllers/users_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/users_controller.rb b/app/controllers/users_controller.rb
index 5a7256d76..78642c7c7 100644
--- a/app/controllers/users_controller.rb
+++ b/app/controllers/users_controller.rb
@@ -73,7 +73,7 @@ class UsersController < ApplicationController
respond_to do |format|
format.html {
events = Redmine::Activity::Fetcher.new(User.current, :author => @user).events(nil, nil, :limit => 10)
- @events_by_day = events.group_by(&:event_date)
+ @events_by_day = events.group_by {|event| User.current.time_to_date(event.event_datetime)}
render :layout => 'base'
}
format.api