chore: Consider inbox.timezone in open_at logic (#2183)
Co-authored-by: Sojan Jose <sojan@pepalo.com>
This commit is contained in:
parent
1f59205f20
commit
21d2b4d918
1 changed files with 2 additions and 1 deletions
|
@ -50,7 +50,8 @@ class WorkingHour < ApplicationRecord
|
|||
end
|
||||
|
||||
def open_now?
|
||||
open_at?(Time.zone.now)
|
||||
inbox_time = Time.zone.now.in_time_zone(inbox.timezone)
|
||||
open_at?(inbox_time)
|
||||
end
|
||||
|
||||
def closed_now?
|
||||
|
|
Loading…
Reference in a new issue