Commit af8d98cb authored by maeda's avatar maeda
Browse files

Fix that MyHelper::render_activity_block is not timezone aware (#2471, #29816).

Patch by Mizuki ISHIKAWA.

git-svn-id: e93f8b46-1217-0410-a6f0-8f06a7374b81
parent c75c245e
......@@ -166,7 +166,7 @@ module MyHelper
def render_activity_block(block, settings)
events_by_day =, :author => User.current).events(nil, nil, :limit => 10).group_by(&:event_date)
events_by_day =, :author => User.current).events(nil, nil, :limit => 10).group_by {|event| User.current.time_to_date(event.event_datetime)}
render :partial => 'my/blocks/activity', :locals => {:events_by_day => events_by_day}
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