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
|
def max_date
|
||||||
if administration_signed_in?
|
if administration_signed_in?
|
||||||
Time.zone.now.to_date
|
Time.zone.now
|
||||||
else
|
else
|
||||||
Time.zone.now.beginning_of_month - 1.second
|
Time.zone.now.beginning_of_month - 1.second
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue