diff --git a/app/models/location.rb b/app/models/location.rb index 0f5616c16..5fa7e40d9 100644 --- a/app/models/location.rb +++ b/app/models/location.rb @@ -225,7 +225,7 @@ class Location < ApplicationRecord end def status - @status ||= status_at(Time.zone.now) + @status ||= status_at(Time.zone.today) end def status_at(date) diff --git a/app/models/scheme.rb b/app/models/scheme.rb index ae772b30b..d1b73d99a 100644 --- a/app/models/scheme.rb +++ b/app/models/scheme.rb @@ -324,7 +324,7 @@ class Scheme < ApplicationRecord end def status - @status ||= status_at(Time.zone.now) + @status ||= status_at(Time.zone.today) end def status_at(date)