Skip to content

Fix Calendar view computing cron planned runs in UTC instead of the Dag's timezone (#71243) - #72839

Merged
vatsrahul1001 merged 1 commit into
v3-3-testfrom
backport-36a9a63ac0-v3-3-test
Sep 10, 2026
Merged

vatsrahul1001 merged 1 commit into
v3-3-testfrom
backport-36a9a63ac0-v3-3-test

Conversation

@vatsrahul1001

Copy link
Copy Markdown
Contributor

Backport of #71243 to v3-3-test for the 3.3.2 release.

Fixes the Calendar view computing cron planned runs in UTC instead of the Dag's own timezone. Service file applied clean; the test's import conflicted only because v3-3-test lacks main's AsyncCallback import (a deadline/callback feature not backported) — resolved to add just CronTriggerTimetable. ruff clean.

Was generative AI tooling used to co-author this PR?
  • Yes — Claude Code (Opus 4.8)

Generated-by: Claude Code (Opus 4.8) following the guidelines

…ag's timezone (#71243)

* Fix Calendar planned runs using UTC instead of Dag timezone

CalendarService._calculate_cron_planned_runs() handed croniter a
UTC-tagged start_time, so cron fields were matched against UTC
wall-clock instead of the timetable's configured timezone. Step
planned instants with CronMixin._get_next() instead of iterating a
raw croniter, so the calendar matches the scheduler exactly,
including its DST gap/fold handling for every-hour crons.

Closes #71234

* Add newsfragment for #71243

* Remove newsfragment; not needed for small bugfixes

(cherry picked from commit 36a9a63)

# Conflicts:
#	airflow-core/tests/unit/api_fastapi/core_api/routes/ui/test_calendar.py
@boring-cyborg boring-cyborg Bot added the area:API Airflow's REST/HTTP API label Sep 9, 2026
@vatsrahul1001 vatsrahul1001 added this to the Airflow 3.3.2 milestone Sep 9, 2026
@vatsrahul1001 vatsrahul1001 added the type:bug-fix Changelog: Bug Fixes label Sep 9, 2026
@vatsrahul1001
vatsrahul1001 merged commit 70d8fa6 into v3-3-test Sep 10, 2026
70 checks passed
@vatsrahul1001
vatsrahul1001 deleted the backport-36a9a63ac0-v3-3-test branch September 10, 2026 02:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:API Airflow's REST/HTTP API type:bug-fix Changelog: Bug Fixes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants