Skip to content

Commit

Permalink
fix: working hours time error
Browse files Browse the repository at this point in the history
  • Loading branch information
okradze committed Jan 9, 2024
1 parent 71d9909 commit 88ef1ae
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions apps/worker/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,10 @@ def make_phone_call(self, campaign_id: str, contact_id: str, account_id: str):

working_hours_start = datetime.strptime(
campaign.get("working_hours_start"), "%H:%M"
)
working_hours_end = datetime.strptime(campaign.get("working_hours_end"), "%H:%M")
).time()
working_hours_end = datetime.strptime(
campaign.get("working_hours_end"), "%H:%M"
).time()

# Get current time in US timezone
# us_tz = pytz.timezone("US/Eastern") # replace with the appropriate US timezone
Expand Down

0 comments on commit 88ef1ae

Please sign in to comment.