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
This commit is contained in:
Jean-Philippe Lang committed 2009-11-06 19:41:03 +00:00
1 parent 54e37b12fd
commit 6245f49934
2 files changed
+10 -1

No files matched your search

+9
View File
@@ -224,6 +224,15 @@ class User < Principal
name
end
# Returns the current day according to user's time zone
def today
if time_zone.nil?
Date.today
else
Time.now.in_time_zone(time_zone).to_date
end
end
def logged?
true
end