summaryrefslogtreecommitdiffstats
path: root/app/controllers/users_controller.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2017-01-04 21:21:15 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2017-01-04 21:21:15 +0000
commit62b64f4834ee97e6e690baadd591dfd693aa21d3 (patch)
tree8567b1adf5b6a3186e79f36eb2cda06827477630 /app/controllers/users_controller.rb
parent84732abd0ad79403c20b978e827e6e3dceae3286 (diff)
downloadredmine-62b64f4834ee97e6e690baadd591dfd693aa21d3.tar.gz
redmine-62b64f4834ee97e6e690baadd591dfd693aa21d3.zip
Wrong activity timezone on user page (#14658).
Patch by Go MAEDA. git-svn-id: http://svn.redmine.org/redmine/trunk@16138 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers/users_controller.rb')
-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 ca1e5e49a..3e4feb8a4 100644
--- a/app/controllers/users_controller.rb
+++ b/app/controllers/users_controller.rb
@@ -74,7 +74,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