Use time.zone functions instead of server time functions
(Time.zone.today vs Date.today)
This commit is contained in:
parent
14bc2b99b9
commit
9de9a1fd71
7 changed files with 10 additions and 10 deletions
|
@ -35,7 +35,7 @@ class Helpscout::UserConversationsAdapter
|
|||
end
|
||||
|
||||
def fetch_productivity_report(year, month)
|
||||
if year == Date.today.year && month == Date.today.month
|
||||
if year == Time.zone.today.year && month == Time.zone.today.month
|
||||
raise ArgumentError, 'The report for the current month will change in the future, and cannot be cached.'
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue