Chuan Qiu created AIRFLOW-6653:
----------------------------------

             Summary: Add option to use local or DAG's timezone in jinja 
template macros
                 Key: AIRFLOW-6653
                 URL: https://issues.apache.org/jira/browse/AIRFLOW-6653
             Project: Apache Airflow
          Issue Type: New Feature
          Components: DAG, DagRun
    Affects Versions: 1.10.7
            Reporter: Chuan Qiu


We use DAG in a different timezone, but for jinja macros like "ds", it always 
uses UTC.

 

if the DAG schedule & triggering is based on some timezone, it would make more 
sense to use the dag's timezone for such macros. (internally in Sql DB it's 
still OK to use UTC time to be exact)



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to