1
0
mirror of https://github.com/meineerde/redmine.git synced 2025-12-25 01:41:14 +00:00

Simplify User#today (#22320).

Patch by Jens Kraemer.

git-svn-id: http://svn.redmine.org/redmine/trunk@15383 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2016-05-07 11:06:22 +00:00
parent eafd585dbe
commit f2a5804f4e

View File

@ -512,8 +512,7 @@ class User < Principal
if time_zone.nil?
Date.today
else
# TODO replace with time_zone.today
Time.now.in_time_zone(time_zone).to_date
time_zone.today
end
end