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())
When setting a default_timezone other than UTC, dag_run API will return naive datetime error.
Can be fixed by adding:
from pytz import timezoneand 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())