• Lang thang,  Mẹo vặt

    The zone attribute is specific to pytz’s interface; please migrate to a new time zone provider

    The zone attribute is specific to pytz's interface; please migrate to a new time zone provider Error Showing /py_env/lib/python3.6/site-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': Press Ctrl+C to exit /py_env/lib/python3.6/site-packages/apscheduler/triggers/interval.py:66: PytzUsageWarning: The normalize method is no longer necessary, as this time zone supports the fold attribute (PEP 495). For more details on migrating to a PEP 495-compliant implementation, see https://pytz-deprecation-shim.readthedocs.io/en/latest/migration.html return self.timezone.normalize(next_fire_time) How to fix The zone attribute is specific to pytz's interface; please migrate to a new time zone provider Add timezone="Asia/Ho_Chi_Minh" to apscheduler…