You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by po...@apache.org on 2023/02/20 00:25:33 UTC

[airflow] branch main updated: Missing timezone in next_dagrun in parameterized docs (#29362)

This is an automated email from the ASF dual-hosted git repository.

potiuk pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git


The following commit(s) were added to refs/heads/main by this push:
     new e9e3f2c8c7 Missing timezone in next_dagrun in parameterized docs (#29362)
e9e3f2c8c7 is described below

commit e9e3f2c8c75a33504f210529200cf7310ca458ca
Author: Rubén Briones <56...@users.noreply.github.com>
AuthorDate: Mon Feb 20 01:25:25 2023 +0100

    Missing timezone in next_dagrun in parameterized docs (#29362)
---
 docs/apache-airflow/howto/timetable.rst | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/docs/apache-airflow/howto/timetable.rst b/docs/apache-airflow/howto/timetable.rst
index 453df2c74f..0cbf817c78 100644
--- a/docs/apache-airflow/howto/timetable.rst
+++ b/docs/apache-airflow/howto/timetable.rst
@@ -226,7 +226,7 @@ purpose, we'd want to do something like:
             end = start + timedelta(days=1)
             return DagRunInfo(
                 data_interval=DataInterval(start=start, end=end),
-                run_after=DateTime.combine(end.date(), self._schedule_at),
+                run_after=DateTime.combine(end.date(), self._schedule_at).replace(tzinfo=UTC),
             )
 
 However, since the timetable is a part of the DAG, we need to tell Airflow how