mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Merge pull request #11623 from ccozkan/issue-11607-timeshift-in-customers-report
Fix occurring time shift in customers report results
This commit is contained in:
@@ -50,8 +50,8 @@ module Reporting
|
||||
private
|
||||
|
||||
def filter_to_completed_at(orders)
|
||||
min = params.dig(:q, :completed_at_gt).presence
|
||||
max = params.dig(:q, :completed_at_lt).presence
|
||||
min = params.dig(:q, :completed_at_gt).presence&.in_time_zone
|
||||
max = params.dig(:q, :completed_at_lt).presence&.in_time_zone
|
||||
|
||||
return orders if min.nil? && max.nil?
|
||||
|
||||
|
||||
Reference in New Issue
Block a user