diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 547f5fd..85e65cf 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -5,7 +5,7 @@ on: branches: - main schedule: - - cron: "0 9 * * *" + - cron: "30 9 * * *" jobs: build: diff --git a/kipper/output.py b/kipper/output.py index 2bcb930..2ca0489 100644 --- a/kipper/output.py +++ b/kipper/output.py @@ -39,7 +39,7 @@ def calculate_status(last_mention: Timestamp) -> KIPStatus: """Calculates the appropriate KIPStatus instance based on the time difference between now and the last mention.""" - now: Timestamp = to_datetime(dt.datetime.utcnow(), utc=True) + now: Timestamp = to_datetime(dt.datetime.now(dt.timezone.utc), utc=True) diff: Timedelta = now - last_mention if diff <= KIPStatus.GREEN.duration: