]> source.dussan.org Git - redmine.git/commitdiff
Wrong activity timezone on user page (#14658).
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Wed, 4 Jan 2017 21:21:15 +0000 (21:21 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Wed, 4 Jan 2017 21:21:15 +0000 (21:21 +0000)
Patch by Go MAEDA.

git-svn-id: http://svn.redmine.org/redmine/trunk@16138 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/controllers/users_controller.rb

index ca1e5e49a0a751900f4dec3a14f6af978e299597..3e4feb8a45e9b95730c658e61992d3fb61ab6f2c 100644 (file)
@@ -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