From f2a5804f4e57e1b1c99f23d695d2b26e38b555e6 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sat, 7 May 2016 11:06:22 +0000 Subject: Simplify User#today (#22320). Patch by Jens Kraemer. git-svn-id: http://svn.redmine.org/redmine/trunk@15383 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/models/user.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'app/models/user.rb') diff --git a/app/models/user.rb b/app/models/user.rb index d97b38bc1..0fc740520 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -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 -- cgit v1.2.3