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:
LeSim 2019-03-08 18:07:16 +01:00 committed by GitHub
commit a638b49ff4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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