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:
parent
eafd585dbe
commit
f2a5804f4e
@ -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
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user