Loading

apscheduler报警告The localize method is no longer necessary,as this time zone supports the fold attribute (PEP 495)

PytzUsageWarning: The localize 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 tzinfo.localize(dt)

加上时区就好了

scheduler = BlockingScheduler(timezone="Asia/Shanghai")

 

posted @ 2022-09-01 17:33  上官飞鸿  阅读(1676)  评论(0)    收藏  举报