summaryrefslogtreecommitdiffstats
path: root/app/controllers/timelog_controller.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2009-11-06 19:41:03 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2009-11-06 19:41:03 +0000
commit6245f49934d2f2444d4313a800c14e17931f8c0b (patch)
treeba04b8f6cfe305b0a88c3030e09351af814b3e1d /app/controllers/timelog_controller.rb
parent54e37b12fdbc25d43bfe8ee1f11c4808dec3f465 (diff)
downloadredmine-6245f49934d2f2444d4313a800c14e17931f8c0b.tar.gz
redmine-6245f49934d2f2444d4313a800c14e17931f8c0b.zip
Fixed: Pre-filled time tracking date ignores timezone (#4160).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3012 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers/timelog_controller.rb')
-rw-r--r--app/controllers/timelog_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/timelog_controller.rb b/app/controllers/timelog_controller.rb
index 103168ea8..4355141c7 100644
--- a/app/controllers/timelog_controller.rb
+++ b/app/controllers/timelog_controller.rb
@@ -210,7 +210,7 @@ class TimelogController < ApplicationController
def edit
render_403 and return if @time_entry && !@time_entry.editable_by?(User.current)
- @time_entry ||= TimeEntry.new(:project => @project, :issue => @issue, :user => User.current, :spent_on => Date.today)
+ @time_entry ||= TimeEntry.new(:project => @project, :issue => @issue, :user => User.current, :spent_on => User.current.today)
@time_entry.attributes = params[:time_entry]
call_hook(:controller_timelog_edit_before_save, { :params => params, :time_entry => @time_entry })