首页 > 其他分享 >apscheduler报警告The localize method is no longer necessary,as this time zone supports the fold attribu

apscheduler报警告The localize method is no longer necessary,as this time zone supports the fold attribu

时间:2022-09-01 17:49:38浏览次数:59  
标签:necessary longer zone attribute PEP fold localize 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")

 

标签:necessary,longer,zone,attribute,PEP,fold,localize,495
From: https://www.cnblogs.com/jackadam/p/16647316.html

相关文章