{"id":842,"date":"2022-05-09T15:56:39","date_gmt":"2022-05-09T07:56:39","guid":{"rendered":"http:\/\/47.98.165.52\/?p=842"},"modified":"2022-05-09T15:56:39","modified_gmt":"2022-05-09T07:56:39","slug":"apscheduler%e6%97%b6%e5%8c%ba%e9%97%ae%e9%a2%98","status":"publish","type":"post","link":"\/?p=842","title":{"rendered":"APScheduler\u65f6\u533a\u95ee\u9898"},"content":{"rendered":"<pre><code class=\"language-shell\">\/home\/rhino\/python3.6\/lib\/python3.6\/site-packages\/apscheduler\/util.py:95: PytzUsageWarning: The zone attribute is specific to pytz&#039;s interface; please migrate to a new time zone provider. For more details on how to do so, see https:\/\/pytz-deprecation-shim.readthedocs.io\/en\/latest\/migration.html\n  if obj.zone == &#039;local&#039;:\nSystem check identified no issues (0 silenced).\n\/home\/rhino\/python3.6\/lib\/python3.6\/site-packages\/apscheduler\/triggers\/cron\/__init__.py:146: PytzUsageWarning: The normalize 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\n  return self.timezone.normalize(dateval + difference), fieldnum\n\/home\/rhino\/python3.6\/lib\/python3.6\/site-packages\/apscheduler\/triggers\/cron\/__init__.py:159: 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\n  return self.timezone.localize(datetime(**values))<\/code><\/pre>\n<p><strong>\u6dfb\u52a0\u65f6\u533a\uff1a<\/strong><\/p>\n<pre><code class=\"language-python\">scheduler = TornadoScheduler(timezone=&#039;Asia\/Shanghai&#039;)<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\/home\/rhino\/python3.6\/lib\/python3.6\/site-packages\/apscheduler\/util.p   \u2026 &#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"ngg_post_thumbnail":0},"categories":[41],"tags":[],"_links":{"self":[{"href":"\/index.php?rest_route=\/wp\/v2\/posts\/842"}],"collection":[{"href":"\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=842"}],"version-history":[{"count":1,"href":"\/index.php?rest_route=\/wp\/v2\/posts\/842\/revisions"}],"predecessor-version":[{"id":843,"href":"\/index.php?rest_route=\/wp\/v2\/posts\/842\/revisions\/843"}],"wp:attachment":[{"href":"\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=842"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=842"},{"taxonomy":"post_tag","embeddable":true,"href":"\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=842"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}