Timezone offset does not match system offset: 0 != -32400. Please, check your config files

apscheduler使用uWSGI的mule模块部署的时候报错,

因为系统时区和代码运行时区不一样导致。

解决办法:在初始化的时候指定上海的时区

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

猜你喜欢

转载自www.cnblogs.com/duanzq/p/11270616.html