Title: Unable to find timezone Yukon Standard Time · Issue #660 · python-pendulum/pendulum · GitHub
Open Graph Title: Unable to find timezone Yukon Standard Time · Issue #660 · python-pendulum/pendulum
X Title: Unable to find timezone Yukon Standard Time · Issue #660 · python-pendulum/pendulum
Description: Yukon Standard Time is a valid time zone. Please update. Thank you. dt1 = pendulum.datetime(2025,5,23,tz='local') dt1 LookupError Traceback (most recent call last) Input In [4], in
Open Graph Description: Yukon Standard Time is a valid time zone. Please update. Thank you. dt1 = pendulum.datetime(2025,5,23,tz='local') dt1 LookupError Traceback (most recent call last) Input In [4], in
X Description: Yukon Standard Time is a valid time zone. Please update. Thank you. dt1 = pendulum.datetime(2025,5,23,tz='local') dt1 LookupError Traceback (most recent call last) Input In [4], in <cell...
Opengraph URL: https://github.com/python-pendulum/pendulum/issues/660
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Unable to find timezone Yukon Standard Time","articleBody":"Yukon Standard Time is a valid time zone. Please update. \r\nThank you.\r\ndt1 = pendulum.datetime(2025,5,23,tz='local')\r\ndt1\r\n\r\n------------------------------------------------------------------\r\nLookupError Traceback (most recent call last)\r\nInput In [4], in \u003ccell line: 1>()\r\n----> 1 dt1 = pendulum.datetime(2025,5,23,tz='local')\r\n 2 dt1\r\n\r\nFile ~\\Anaconda3\\lib\\site-packages\\pendulum\\__init__.py:111, in datetime(year, month, day, hour, minute, second, microsecond, tz, dst_rule)\r\n 107 \"\"\"\r\n 108 Creates a new DateTime instance from a specific date and time.\r\n 109 \"\"\"\r\n 110 if tz is not None:\r\n--> 111 tz = _safe_timezone(tz)\r\n 113 if not _HAS_FOLD:\r\n 114 dt = naive(year, month, day, hour, minute, second, microsecond)\r\n\r\nFile ~\\Anaconda3\\lib\\site-packages\\pendulum\\__init__.py:74, in _safe_timezone(obj)\r\n 71 return obj\r\n 73 if obj is None or obj == \"local\":\r\n---> 74 return local_timezone()\r\n 76 if isinstance(obj, (int, float)):\r\n 77 obj = int(obj * 60 * 60)\r\n\r\nFile ~\\Anaconda3\\lib\\site-packages\\pendulum\\tz\\__init__.py:60, in local_timezone()\r\n 56 def local_timezone(): # type: () -> _Timezone\r\n 57 \"\"\"\r\n 58 Return the local timezone.\r\n 59 \"\"\"\r\n---> 60 return get_local_timezone()\r\n\r\nFile ~\\Anaconda3\\lib\\site-packages\\pendulum\\tz\\local_timezone.py:35, in get_local_timezone()\r\n 32 return _mock_local_timezone\r\n 34 if _local_timezone is None:\r\n---> 35 tz = _get_system_timezone()\r\n 37 _local_timezone = tz\r\n 39 return _local_timezone\r\n\r\nFile ~\\Anaconda3\\lib\\site-packages\\pendulum\\tz\\local_timezone.py:59, in _get_system_timezone()\r\n 57 def _get_system_timezone(): # type: () -> Timezone\r\n 58 if sys.platform == \"win32\":\r\n---> 59 return _get_windows_timezone()\r\n 60 elif \"darwin\" in sys.platform:\r\n 61 return _get_darwin_timezone()\r\n\r\nFile ~\\Anaconda3\\lib\\site-packages\\pendulum\\tz\\local_timezone.py:140, in _get_windows_timezone()\r\n 138 # Return what we have.\r\n 139 if timezone is None:\r\n--> 140 raise LookupError(\"Unable to find timezone \" + tzkeyname)\r\n 142 return Timezone(timezone)\r\n\r\nLookupError: Unable to find timezone Yukon Standard Time\r\n\u003c!--\r\n Hi there! Thank you for wanting to make Pendulum better.\r\n\r\n Before you submit this; let's make sure of a few things.\r\n Please make sure the following boxes are ticked if they are correct.\r\n If not, please try and fulfill these first.\r\n-->\r\n\r\n\u003c!-- Checked checkbox should look like this: [x] -->\r\n- [x] I have searched the [issues](https://github.com/sdispater/pendulum/issues) of this repo and believe that this is not a duplicate.\r\n- [x] I have searched the [documentation](https://pendulum.eustace.io/docs/) and believe that my question is not covered.\r\n\r\n## Feature Request\r\n\u003c!-- Now feel free to write your idea for improvement. Thanks again 🙌 ❤️ -->\r\n","author":{"url":"https://github.com/forpassion","@type":"Person","name":"forpassion"},"datePublished":"2022-10-01T23:20:47Z","url":"https://github.com/python-pendulum/pendulum/issues/660"}
| 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:fac0fd32-6b74-7753-a291-af24ede0b8ab |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C8C2:2D6F70:31A934:4613C4:6B046BE1 |
| html-safe-nonce | f4661d5fcce84989d81510d8ad6ff76987b6bd4e593d1925e81b5c4ede6f9cda |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDOEMyOjJENkY3MDozMUE5MzQ6NDYxM0M0OjZCMDQ2QkUxIiwidmlzaXRvcl9pZCI6IjgwOTU5Njc3NTgzNjE4MzUyMSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | f3ba09600871291305cdc1382a1086a48f583926c3e286e5fca194eeec595131 |
| hovercard-subject-tag | issue:1393586604 |
| 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/660/issue_layout |
| twitter:image | https://opengraph.githubassets.com/d5aed1acbf60e9b2edad71db5acf12be18edbae59c1b98385f3edd6b40a06ef6/python-pendulum/pendulum/issues/660 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/d5aed1acbf60e9b2edad71db5acf12be18edbae59c1b98385f3edd6b40a06ef6/python-pendulum/pendulum/issues/660 |
| og:image:alt | Yukon Standard Time is a valid time zone. Please update. Thank you. dt1 = pendulum.datetime(2025,5,23,tz='local') dt1 LookupError Traceback (most recent call last) Input In [4], in |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | forpassion |
| 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 |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width