Use user's time zone when logging time while editing ticket (#9619).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7918 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2011-11-24 20:39:24 +00:00
parent 902b3078d5
commit 6dab391932
1 changed files with 1 additions and 1 deletions

View File

@ -616,7 +616,7 @@ class Issue < ActiveRecord::Base
@time_entry.project = project
@time_entry.issue = self
@time_entry.user = User.current
@time_entry.spent_on = Date.today
@time_entry.spent_on = User.current.today
@time_entry.attributes = params[:time_entry]
self.time_entries << @time_entry
end