Merge pull request #3557 from maatinito/issue/loose_of_timezone
converting DateTime to Date looses time zone information resulting in…
This commit is contained in:
commit
a638b49ff4
1 changed files with 1 additions and 1 deletions
|
@ -204,7 +204,7 @@ class StatsController < ApplicationController
|
|||
|
||||
def max_date
|
||||
if administration_signed_in?
|
||||
Time.zone.now.to_date
|
||||
Time.zone.now
|
||||
else
|
||||
Time.zone.now.beginning_of_month - 1.second
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue