chore: Consider inbox.timezone in open_at logic (#2183)
Co-authored-by: Sojan Jose <sojan@pepalo.com>
This commit is contained in:
@@ -50,7 +50,8 @@ class WorkingHour < ApplicationRecord
|
|||||||
end
|
end
|
||||||
|
|
||||||
def open_now?
|
def open_now?
|
||||||
open_at?(Time.zone.now)
|
inbox_time = Time.zone.now.in_time_zone(inbox.timezone)
|
||||||
|
open_at?(inbox_time)
|
||||||
end
|
end
|
||||||
|
|
||||||
def closed_now?
|
def closed_now?
|
||||||
|
|||||||
Reference in New Issue
Block a user