美文网首页
Timezone offset does not match s

Timezone offset does not match s

作者: Leoguo小哥 | 来源:发表于2020-03-26 19:39 被阅读0次

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

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

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

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

相关文章

网友评论

      本文标题:Timezone offset does not match s

      本文链接:https://www.haomeiwen.com/subject/ydhhuhtx.html