Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kurbezz committed Sep 30, 2024
1 parent 8bb0219 commit 4ef3b60
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/services/scheduler_sync/comparators.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@


def is_repeated(start: datetime, target: datetime, rule: RecurrenceRule) -> bool:
return start.time() == target.time() and target.weekday() in rule.by_weekday
start_utc = start.astimezone(datetime.now().astimezone().tzinfo)
target_utc = target.astimezone(datetime.now().astimezone().tzinfo)

return start_utc.time() == target_utc.time() and target.weekday() in rule.by_weekday


def compare(create_event: CreateDiscordEvent, event: DiscordEvent) -> bool:
Expand Down

0 comments on commit 4ef3b60

Please sign in to comment.