linwanlong commented on issue #54006: URL: https://github.com/apache/airflow/issues/54006#issuecomment-3489446734
@phanikumv @jgoedeke Version is 3.1.1 ```text # Default timezone in case supplied date times are naive # can be `UTC` (default), `system`, or any `IANA <https://www.iana.org/time-zones>` # timezone string (e.g. Europe/Amsterdam) # # Variable: AIRFLOW__CORE__DEFAULT_TIMEZONE # default_timezone = Asia/Shanghai ``` I want to know which time zone is controlled by default_timezone The following is the incorrect result <img width="2331" height="486" alt="Image" src="https://github.com/user-attachments/assets/bcc95888-c144-4a3e-8fbe-0e2905e7435d" /> The timestamp I triggered through the UI is 2025-11-05T013:21:42+08:00 Another type <img width="2284" height="597" alt="Image" src="https://github.com/user-attachments/assets/1c6ebcb4-4fd5-4c8a-80b0-13ed3e0864be" /> I triggered it through the interface ```python local_zone = tzlocal.get_localzone() # Dynamically obtain local time zone local_dt = datetime.now(local_zone) logical_date = local_dt.isoformat() payload = {} print(f"{i+1}/{TOTAL_RUNS} - {logical_date}") response = requests.post( f"{AIRFLOW_BASE_URL}/dags/{DAG_ID}/dagRuns", headers=headers, json=payload, timeout=10, ) ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
