mirror of
https://github.com/ansible/awx.git
synced 2026-02-22 13:36:02 -03:30
@@ -119,10 +119,11 @@ class Schedule(PrimordialModel, LaunchTimeConfig):
|
|||||||
tzinfo = r._dtstart.tzinfo
|
tzinfo = r._dtstart.tzinfo
|
||||||
if tzinfo is utc:
|
if tzinfo is utc:
|
||||||
return 'UTC'
|
return 'UTC'
|
||||||
fname = tzinfo._filename
|
fname = getattr(tzinfo, '_filename', None)
|
||||||
for zone in all_zones:
|
if fname:
|
||||||
if fname.endswith(zone):
|
for zone in all_zones:
|
||||||
return zone
|
if fname.endswith(zone):
|
||||||
|
return zone
|
||||||
logger.warn('Could not detect valid zoneinfo for {}'.format(self.rrule))
|
logger.warn('Could not detect valid zoneinfo for {}'.format(self.rrule))
|
||||||
return ''
|
return ''
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user