Takako Ohshima created AIRFLOW-4128:
---------------------------------------
Summary: Timezone transferring in macro doesn't work
Key: AIRFLOW-4128
URL: https://issues.apache.org/jira/browse/AIRFLOW-4128
Project: Apache Airflow
Issue Type: Bug
Components: DAG
Affects Versions: 1.10.1, 1.10.0
Environment: Cloud Composer
Reporter: Takako Ohshima
On Airflow 1.9, it worked like this timezone transferring like below.
But 1.10.x seems doesn’t work this way with `Error rendering template:
'NoneType' object has no attribute 'total_seconds'` error.
{code:java}
bash_command="echo {{
execution_date.replace(tzinfo=macros.dateutil.tz.gettz('US/Pacific')) }}"
bigquery_to_datastore_task = BashOperator(
dag=dag,
task_id="bigquery_to_datastore",
bash_command=bash_command,
)
{code}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)