airflow_api_plugin icon indicating copy to clipboard operation
airflow_api_plugin copied to clipboard

Naive datetime issue

Open vic614 opened this issue 7 years ago • 1 comments

When setting a default_timezone other than UTC, dag_run API will return naive datetime error. Can be fixed by adding: from pytz import timezone and replacing line 178 and 179 with: local_tz = timezone(settings.conf.get('core','default_timezone')) start_date = local_tz.localize(datetime.now()) end_date = local_tz.localize(datetime.now())

vic614 avatar Dec 04 '18 15:12 vic614

This issue does exists .. I faced it too.

PythonGirlSam avatar Dec 10 '18 12:12 PythonGirlSam