Timezone offset does not match system offset: 0 != -32400. Please, check your config files
程序员文章站
2022-03-09 15:33:37
...
Timezone offset does not match system offset: 0 != -32400. Please, check your config files
apscheduler使用uWSGI的mule模块部署的时候报错,
因为系统时区和代码运行时区不一样导致。
解决办法:在创建BlockingScheduler对象时指定上海的时区
scheduler = BlockingScheduler(timezone="Asia/Shanghai")