summaryrefslogtreecommitdiffstats
path: root/app/models/issue.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2011-11-24 20:39:24 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2011-11-24 20:39:24 +0000
commit6dab391932ef31af465342b75ae8b3578aa86f65 (patch)
tree71d6b1b4e2c2d631ec5ba493c6fbbac3da53d319 /app/models/issue.rb
parent902b3078d549ad533ad26878de5e74bb318fe1ea (diff)
downloadredmine-6dab391932ef31af465342b75ae8b3578aa86f65.tar.gz
redmine-6dab391932ef31af465342b75ae8b3578aa86f65.zip
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
Diffstat (limited to 'app/models/issue.rb')
-rw-r--r--app/models/issue.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/issue.rb b/app/models/issue.rb
index 735a50ee9..cbe3dd659 100644
--- a/app/models/issue.rb
+++ b/app/models/issue.rb
@@ -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