Ken-poc commented on issue #27903:
URL: https://github.com/apache/airflow/issues/27903#issuecomment-1326984633
yes I know that works.
if start_date and start_date.tzinfo:
tzinfo = None if start_date.tzinfo else settings.TIMEZONE
tz = pendulum.instance(start_date, tz=tzinfo).timezone
Though `start_date` has its `tzinfo`, `tzinfo` is always assigned to _None_
and `tz` eventually is made from `start_date` not `tzinfo` anyway. this makes
it confusing even though it acutally works.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]