rgangopadhya edited a comment on issue #4117: [AIRFLOW-3277] Correctly observe 
DST transitions for cron
URL: https://github.com/apache/airflow/pull/4117#issuecomment-481477679
 
 
   @cfei18 this seems to assume that the tzinfo has a name attribute, which is 
not always the case. 
   
   ```
   >>> from dateutil import parser
   >>> start_time = parser.parse("2018-11-28 00:00:00 -0800")
   >> start_time.tzinfo.name
   Traceback (most recent call last):
     File "<stdin>", line 1, in <module>
   AttributeError: 'tzoffset' object has no attribute 'name'
   ```
   
   Looks like timezones created with pendulum have a name, but not general 
timezones.

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to