]> source.dussan.org Git - redmine.git/commitdiff
Use user's time zone when logging time while editing ticket (#9619).
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Thu, 24 Nov 2011 20:39:24 +0000 (20:39 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Thu, 24 Nov 2011 20:39:24 +0000 (20:39 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7918 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/models/issue.rb

index 735a50ee9cea4a4104f18eff7ebc1cc021d11785..cbe3dd65949005ee63dc6645420a2137370b7fed 100644 (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