Commit 3fa7cb11 authored by jplang's avatar jplang

Wrong activity timezone on user page (#14658).

Patch by Go MAEDA.

git-svn-id: https://svn.redmine.org/redmine/trunk@16138 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent 0769dabb
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment