kytos-ng / maintenance

Kytos Maintenance Window NApp
https://kytos-ng.github.io/api/maintenance.html
0 stars 7 forks source link

Pytz deprecation message - PytzUsageWarning: The zone attribute is specific to pytz's interface; please migrate to a new time zone provider. #27

Open italovalcy opened 2 years ago

italovalcy commented 2 years ago

From kytos console:

/usr/local/lib/python3.7/dist-packages/apscheduler/util.py:95: PytzUsageWarning: The zone attribute is specific to pytz's interface; please migrate to a new time zone provider. For more details on how to do so, see https://pytz-deprecation-shim.readthedocs.io/en/latest/migration.html
  if obj.zone == 'local':

/usr/local/lib/python3.7/dist-packages/apscheduler/util.py:95:

def astimezone(obj):
    """
    Interprets an object as a timezone.

    :rtype: tzinfo

    """
    if isinstance(obj, six.string_types):
        return timezone(obj)
    if isinstance(obj, tzinfo):
...

https://github.com/kytos-ng/maintenance/blob/master/models.py#L171