Title: pendulum.now() is inconsistent when using the TZ env variable · Issue #497 · python-pendulum/pendulum · GitHub
Open Graph Title: pendulum.now() is inconsistent when using the TZ env variable · Issue #497 · python-pendulum/pendulum
X Title: pendulum.now() is inconsistent when using the TZ env variable · Issue #497 · python-pendulum/pendulum
Description: Example, when using TZ=Europe/Berlin >>> import pendulum >>> pendulum.now()
Open Graph Description: Example, when using TZ=Europe/Berlin >>> import pendulum >>> pendulum.now() X Description: Example, when using TZ=Europe/Berlin >>> import pendulum >>> pendulum.now() <Pendulum [2020-09-01T18:53:49.977333+02:00]> >>> pendulum.now(tz='Europe/Berlin'...
Opengraph URL: https://github.com/python-pendulum/pendulum/issues/497
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
Links:
Viewport: width=device-width
Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"pendulum.now() is inconsistent when using the TZ env variable","articleBody":"Example, when using TZ=Europe/Berlin\r\n\r\n```\r\n>>> import pendulum\r\n>>> pendulum.now()\r\n\u003cPendulum [2020-09-01T18:53:49.977333+02:00]>\r\n>>> pendulum.now(tz='Europe/Berlin')\r\n\u003cPendulum [2020-09-01T20:54:02.361281+02:00]>\r\n>>> pendulum.now().timezone.name\r\n'Europe/Berlin'\r\n>>> pendulum.now(tz='Europe/Berlin').timezone.name\r\n'Europe/Berlin'\r\n```\r\n\r\nThe correct time was 18:53 (the one given without the `tz` parameter). It seems that, if `tz` is sent, it doesn't check what the system date timezone is and assumes it's on UTC, so it moved it to +2 when it shouldn't.","author":{"url":"https://github.com/guiwoda","@type":"Person","name":"guiwoda"},"datePublished":"2020-09-01T20:08:58Z","url":"https://github.com/python-pendulum/pendulum/issues/497"}
react-profiling 0 react-import-map react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 route-pattern /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) route-controller voltron_issues_fragments route-action issue_layout fetch-nonce v2:a0e56a5c-e7bc-0ff0-e3e8-267e6d850d1e current-catalog-service-hash 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 request-id C218:D7239:2C6D8B:3F1550:6B046C38 html-safe-nonce 01840ee67edb01e4294a64db80fb4fa40811350d39e88a2f49f99d62b9e71378 visitor-payload eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMjE4OkQ3MjM5OjJDNkQ4QjozRjE1NTA6NkIwNDZDMzgiLCJ2aXNpdG9yX2lkIjoiODE4NDU3MDA5ODk5OTkwMDcyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= visitor-hmac c9c4608185178c273cdd6fbcfe034215984ddc73317287385217815a9463b2c6 hovercard-subject-tag issue:690413562 github-keyboard-shortcuts repository,issues,copilot google-site-verification Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I octolytics-url https://collector.github.com/github/collect analytics-location / fb:app_id 1401488693436528 apple-itunes-app app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python-pendulum/pendulum/497/issue_layout twitter:image https://opengraph.githubassets.com/139ee59267bf68d364a3f48adba273c54fb2eab47b721035b5ed7eda19192798/python-pendulum/pendulum/issues/497 twitter:card summary_large_image og:image https://opengraph.githubassets.com/139ee59267bf68d364a3f48adba273c54fb2eab47b721035b5ed7eda19192798/python-pendulum/pendulum/issues/497 og:image:alt Example, when using TZ=Europe/Berlin >>> import pendulum >>> pendulum.now() og:image:width 1200 og:image:height 600 og:site_name GitHub og:type object og:author:username guiwoda hostname github.com expected-hostname github.com None 83e4c0e58c5162177f3c161c5fbad38527ae04c11ac14980f9f9d85ae2027b1f turbo-cache-control no-preview go-import github.com/python-pendulum/pendulum git https://github.com/python-pendulum/pendulum.git octolytics-dimension-user_id 191041900 octolytics-dimension-user_login python-pendulum octolytics-dimension-repository_id 62095504 octolytics-dimension-repository_nwo python-pendulum/pendulum octolytics-dimension-repository_public true octolytics-dimension-repository_is_fork false octolytics-dimension-repository_network_root_id 62095504 octolytics-dimension-repository_network_root_nwo python-pendulum/pendulum turbo-body-classes logged-out env-production page-responsive disable-turbo false browser-stats-url https://api.github.com/_private/browser/stats browser-errors-url https://api.github.com/_private/browser/errors release ca4d07a7cef4e4b75f821dc25e7300d80c1450a9 ui-target full theme-color #1e2327 color-scheme light dark react-app-name issues
Response headers:
Server github.com Content-Type text/html; charset=utf-8 Cache-Control max-age=0, private, must-revalidate
URLs of crawlers that visited me.