summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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