This is an automated email from the ASF dual-hosted git repository.
eladkal pushed a commit to branch v3-2-test
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/v3-2-test by this push:
new a3c52775a2b [v3-2-test] Fix start_date in example DAGs to avoid TZ
conversion overflow (#63882) (#64758)
a3c52775a2b is described below
commit a3c52775a2b39287161da6d45c72259498eda8cc
Author: github-actions[bot]
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Mon Apr 6 13:37:55 2026 +0300
[v3-2-test] Fix start_date in example DAGs to avoid TZ conversion overflow
(#63882) (#64758)
* Fix start_date in example DAGs to avoid TZ conversion overflow
* Update airflow-core/src/airflow/example_dags/example_inlet_event_extra.py
* Update airflow-core/src/airflow/example_dags/example_inlet_event_extra.py
* Update airflow-core/src/airflow/example_dags/example_outlet_event_extra.py
* Update airflow-core/src/airflow/example_dags/example_outlet_event_extra.py
* Apply suggestion from @yuseok89
---------
(cherry picked from commit db5e555cc628c7613e37772c07f7acc70a3d0c40)
Co-authored-by: HuangWei <[email protected]>
Co-authored-by: yuseok89 <[email protected]>
---
airflow-core/src/airflow/example_dags/example_inlet_event_extra.py | 4 ++--
airflow-core/src/airflow/example_dags/example_outlet_event_extra.py | 6 +++---
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/airflow-core/src/airflow/example_dags/example_inlet_event_extra.py
b/airflow-core/src/airflow/example_dags/example_inlet_event_extra.py
index ead4b442b78..eb61ed443f6 100644
--- a/airflow-core/src/airflow/example_dags/example_inlet_event_extra.py
+++ b/airflow-core/src/airflow/example_dags/example_inlet_event_extra.py
@@ -33,7 +33,7 @@ asset = Asset("s3://output/1.txt")
with DAG(
dag_id="read_asset_event",
catchup=False,
- start_date=datetime.datetime.min,
+ start_date=datetime.datetime(1970, 1, 1, tzinfo=datetime.timezone.utc),
schedule="@daily",
tags=["consumes"],
):
@@ -48,7 +48,7 @@ with DAG(
with DAG(
dag_id="read_asset_event_from_classic",
catchup=False,
- start_date=datetime.datetime.min,
+ start_date=datetime.datetime(1970, 1, 1, tzinfo=datetime.timezone.utc),
schedule="@daily",
tags=["consumes"],
):
diff --git
a/airflow-core/src/airflow/example_dags/example_outlet_event_extra.py
b/airflow-core/src/airflow/example_dags/example_outlet_event_extra.py
index 04e88554d16..7baab90625d 100644
--- a/airflow-core/src/airflow/example_dags/example_outlet_event_extra.py
+++ b/airflow-core/src/airflow/example_dags/example_outlet_event_extra.py
@@ -33,7 +33,7 @@ asset = Asset(uri="s3://output/1.txt", name="test-asset")
with DAG(
dag_id="asset_with_extra_by_yield",
catchup=False,
- start_date=datetime.datetime.min,
+ start_date=datetime.datetime(1970, 1, 1, tzinfo=datetime.timezone.utc),
schedule="@daily",
tags=["produces"],
):
@@ -47,7 +47,7 @@ with DAG(
with DAG(
dag_id="asset_with_extra_by_context",
catchup=False,
- start_date=datetime.datetime.min,
+ start_date=datetime.datetime(1970, 1, 1, tzinfo=datetime.timezone.utc),
schedule="@daily",
tags=["produces"],
):
@@ -61,7 +61,7 @@ with DAG(
with DAG(
dag_id="asset_with_extra_from_classic_operator",
catchup=False,
- start_date=datetime.datetime.min,
+ start_date=datetime.datetime(1970, 1, 1, tzinfo=datetime.timezone.utc),
schedule="@daily",
tags=["produces"],
):