]> source.dussan.org Git - redmine.git/commitdiff
Merged r16138 (#14658).
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 7 Jan 2017 07:51:52 +0000 (07:51 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 7 Jan 2017 07:51:52 +0000 (07:51 +0000)
git-svn-id: http://svn.redmine.org/redmine/branches/3.3-stable@16139 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/controllers/users_controller.rb

index 5a7256d769c26368423c32b9a9f782488b38e526..78642c7c722f00091f598f56bf064986250708b1 100644 (file)
@@ -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