{"id":205336,"date":"2025-05-29T12:56:11","date_gmt":"2025-05-29T04:56:11","guid":{"rendered":"https:\/\/server.hk\/cnblog\/205336\/"},"modified":"2025-05-29T12:56:11","modified_gmt":"2025-05-29T04:56:11","slug":"%e4%b8%ba%e4%bd%95-pytz-%e6%97%a0%e6%b3%95%e7%9b%b4%e6%8e%a5%e8%8e%b7%e5%8f%96%e5%8c%97%e4%ba%ac%e6%97%b6%e9%97%b4%ef%bc%9f","status":"publish","type":"post","link":"https:\/\/server.hk\/cnblog\/205336\/","title":{"rendered":"\u4e3a\u4f55 pytz \u65e0\u6cd5\u76f4\u63a5\u83b7\u53d6\u5317\u4eac\u65f6\u95f4\uff1f"},"content":{"rendered":"<p><b><\/b>     <\/p>\n<h1>\u4e3a\u4f55 pytz \u65e0\u6cd5\u76f4\u63a5\u83b7\u53d6\u5317\u4eac\u65f6\u95f4\uff1f<\/h1>\n<p>\u4eca\u5929\u7ed9\u5927\u5bb6\u5e26\u6765\u4e86\uff0c\u5176\u4e2d\u6d89\u53ca\u5230\u7684\u77e5\u8bc6\u70b9\u5305\u62ec<span style=\"color: #FF6600;, Helvetica, Arial, sans-serif;font-size: 14px;background-color: #FFFFFF\"><\/span>\u7b49\u7b49\uff0c\u65e0\u8bba\u4f60\u662f\u5c0f\u767d\u8fd8\u662f\u8001\u624b\uff0c\u90fd\u9002\u5408\u770b\u4e00\u770b\u54e6~\u6709\u597d\u7684\u5efa\u8bae\u4e5f\u6b22\u8fce\u5927\u5bb6\u5728\u8bc4\u8bba\u7559\u8a00\uff0c\u82e5\u662f\u770b\u5b8c\u6709\u6240\u6536\u83b7\uff0c\u4e5f\u5e0c\u671b\u5927\u5bb6\u80fd\u591a\u591a\u70b9\u8d5e\u652f\u6301\u5440\uff01\u4e00\u8d77\u52a0\u6cb9\u5b66\u4e60~<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.17golang.com\/uploads\/20241129\/1732852129674939a1c0fb1.jpg\" class=\"aligncenter\"><\/p>\n<p><strong>\u4e3a\u4f55 pytz \u4e0d\u652f\u6301\u5317\u4eac\u65f6\u95f4\uff1f<\/strong><\/p>\n<p>pytz \u9ed8\u8ba4\u91c7\u7528\u5f53\u5730\u5e73\u5747\u65f6\u95f4\uff08LMT\uff09\uff0c\u7136\u800c\u201cAsia\/Shanghai\u201d\u53ef\u4ee5\u6307\u4e09\u79cd\u65f6\u533a\uff1a\u5f53\u5730\u6807\u51c6\u65f6\u95f4\uff08\u5373 UTC+08:00\uff09\u3001\u5f53\u5730\u5e73\u5747\u65f6\u95f4\uff08\u5373 LMT+08:06\uff09\u548c\u4e2d\u56fd\u590f\u4ee4\u65f6\u95f4\uff08\u5df2\u5e9f\u6b62\uff09\u3002\u4e3a\u4e86\u83b7\u5f97\u6807\u51c6\u65f6\u95f4\uff0c\u9700\u8981\u4f7f\u7528 normalize \u6216 localize \u51fd\u6570\u3002<\/p>\n<p><strong>\u4e3a\u4f55\u5f88\u5c11\u6709\u4e1c\u897f\u652f\u6301\u201c\u5317\u4eac\u65f6\u95f4\u201d\uff1f<\/strong><\/p>\n<p>\u8ba1\u7b97\u673a\u65f6\u533a\u6570\u636e\u5e93 tzdb \u7531 Paul Eggert \u7ef4\u62a4\uff0c\u51b3\u5b9a\u4e86\u54ea\u4e9b\u5730\u533a\u7eb3\u5165\u6570\u636e\u5e93\u3002\u4ed6\u6839\u636e\u81ea\u5df1\u7684\u5224\u65ad\u51b3\u5b9a\u662f\u5426\u6536\u5f55\u6807\u5fd7\u6027\u57ce\u5e02\u3002\u867d\u7136\u8bb8\u591a\u56fd\u5bb6\/\u5730\u533a\u62b1\u6028\u4ed6\u4eec\u7684\u57ce\u5e02\u4e0d\u5728 tzdb \u4e2d\uff0c\u4f46\u4e00\u4e9b\u8f6f\u4ef6\uff08\u5982 Windows\uff09\u4f7f\u7528\u81ea\u5df1\u7684\u65f6\u533a\u6570\u636e\u5e93\uff0c\u5176\u4e2d\u53ef\u80fd\u652f\u6301\u201cAsia\/Beijing\u201d\u3002<\/p>\n<p>\u4ee5\u4e0a\u5c31\u662f\u672c\u6587\u7684\u5168\u90e8\u5185\u5bb9\u4e86\uff0c\u662f\u5426\u6709\u987a\u5229\u5e2e\u52a9\u4f60\u89e3\u51b3\u95ee\u9898\uff1f\u82e5\u662f\u80fd\u7ed9\u4f60\u5e26\u6765\u5b66\u4e60\u4e0a\u7684\u5e2e\u52a9\uff0c\u8bf7\u5927\u5bb6\u591a\u591a\u652f\u6301\uff01\u66f4\u591a\u5173\u4e8e\u6587\u7ae0\u7684\u76f8\u5173\u77e5\u8bc6\uff0c\u4e5f\u53ef\u5173\u6ce8\u516c\u4f17\u53f7\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4e3a\u4f55 pytz \u65e0\u6cd5\u76f4\u63a5\u83b7\u53d6\u5317\u4eac&#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4925],"tags":[],"class_list":["post-205336","post","type-post","status-publish","format-standard","hentry","category-4925"],"_links":{"self":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/205336","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/comments?post=205336"}],"version-history":[{"count":0,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/205336\/revisions"}],"wp:attachment":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/media?parent=205336"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/categories?post=205336"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/tags?post=205336"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}