René's URL Explorer Experiment


Title: gh-152079: Fix C datetime.fromisoformat() dropping sub-second UTC offset by tonghuaroot · Pull Request #152087 · python/cpython · GitHub

Open Graph Title: gh-152079: Fix C datetime.fromisoformat() dropping sub-second UTC offset by tonghuaroot · Pull Request #152087 · python/cpython

X Title: gh-152079: Fix C datetime.fromisoformat() dropping sub-second UTC offset by tonghuaroot · Pull Request #152087 · python/cpython

Description: The Python programming language. Contribute to python/cpython development by creating an account on GitHub.

Open Graph Description: The C accelerator's tzinfo_from_isoformat_results() collapsed any UTC offset with a zero whole-second part to timezone.utc, discarding the parsed sub-second microseconds. As a result '2020-...

X Description: The C accelerator's tzinfo_from_isoformat_results() collapsed any UTC offset with a zero whole-second part to timezone.utc, discarding the parsed sub-second microseconds. As a result &#...

Opengraph URL: https://github.com/python/cpython/pull/152087

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,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/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:66e85721-11bd-0af7-e7ca-d54c28604df8
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idD65E:1D20B7:326AC66:3FE3001:6B0205EB
html-safe-noncec1060b11aee60892cda05a6800414e60e34ad29bad70020bc0b1665ad34b62c8
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENjVFOjFEMjBCNzozMjZBQzY2OjNGRTMwMDE6NkIwMjA1RUIiLCJ2aXNpdG9yX2lkIjoiODk0MjcwOTUyMzcyMjkyOTY0MyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac048fa4f7c5223bc790ea041f1acacf2641e00626ec5a63474d2ca631f2ab2571
hovercard-subject-tagpull_request:3928247443
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/python/cpython/152087/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/1a769de6f9cbea3dc0c04ea9d6619ca777150655879355b66552ede6c0a68ee1/python/cpython/pull/152087
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/1a769de6f9cbea3dc0c04ea9d6619ca777150655879355b66552ede6c0a68ee1/python/cpython/pull/152087
og:image:altThe C accelerator's tzinfo_from_isoformat_results() collapsed any UTC offset with a zero whole-second part to timezone.utc, discarding the parsed sub-second microseconds. As a result '2020-...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernametonghuaroot
hostnamegithub.com
expected-hostnamegithub.com
None87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456
turbo-cache-controlno-cache
go-importgithub.com/python/cpython git https://github.com/python/cpython.git
octolytics-dimension-user_id1525981
octolytics-dimension-user_loginpython
octolytics-dimension-repository_id81598961
octolytics-dimension-repository_nwopython/cpython
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id81598961
octolytics-dimension-repository_network_root_nwopython/cpython
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release423dbb54c5e7bfecc838eb387c1435eb3d0e760d
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/python/cpython/pull/152087#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F152087
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F152087
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/pull/152087
Reloadhttps://github.com/python/cpython/pull/152087
Reloadhttps://github.com/python/cpython/pull/152087
pythonhttps://github.com/python
cpythonhttps://github.com/python/cpython
Codehttps://github.com/python/cpython
Issues5k+ (5k+)https://github.com/python/cpython/issues
Pull requests2.4k (2.4k)https://github.com/python/cpython/pulls
Actionshttps://github.com/python/cpython/actions
Projectshttps://github.com/python/cpython/projects
Security and qualityhttps://github.com/python/cpython/security
Insightshttps://github.com/python/cpython/insights
https://github.com/python/cpython
StanFromIrelandhttps://github.com/StanFromIreland
python:mainhttps://github.com/python/cpython/tree/main
tonghuaroot:fix-c-datetime-fromisoformat-subsecond-offsethttps://github.com/tonghuaroot/cpython/tree/fix-c-datetime-fromisoformat-subsecond-offset
Conversationhttps://github.com/python/cpython/pull/152087
Commits2 (2)https://github.com/python/cpython/pull/152087/commits
Checkshttps://github.com/python/cpython/pull/152087/checks
Files changedhttps://github.com/python/cpython/pull/152087/files
gh-152079: Fix C datetime.fromisoformat() dropping sub-second UTC offsethttps://github.com/python/cpython/pull/152087#top
StanFromIrelandhttps://github.com/StanFromIreland
python:mainhttps://github.com/python/cpython/tree/main
tonghuaroot:fix-c-datetime-fromisoformat-subsecond-offsethttps://github.com/tonghuaroot/cpython/tree/fix-c-datetime-fromisoformat-subsecond-offset
https://github.com/tonghuaroot
tonghuaroothttps://github.com/tonghuaroot
Jun 24, 2026https://github.com/python/cpython/pull/152087#issue-4735535659
Please reload this pagehttps://github.com/python/cpython/pull/152087
#152079https://github.com/python/cpython/issues/152079
#152060https://github.com/python/cpython/issues/152060
datetime.fromisoformat() (C) drops the sub-second part of a UTC offset, breaking round-trips #152079https://github.com/python/cpython/issues/152079
Please reload this pagehttps://github.com/python/cpython/pull/152087
https://github.com/tonghuaroot
tonghuaroothttps://github.com/tonghuaroot
StanFromIrelandhttps://github.com/StanFromIreland
pgansslehttps://github.com/pganssle
code ownershttps://github.com/python/cpython/blob/28b63d301dcfb7ecff86903094b9351d92d9c31e/.github/CODEOWNERS#L437
June 24, 2026 14:04https://github.com/python/cpython/pull/152087#event-27148779630
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
Jun 24, 2026 https://github.com/python/cpython/pull/152087#ref-issue-4735108937
datetime.fromisoformat() (C) drops the sub-second part of a UTC offset, breaking round-trips #152079 https://github.com/python/cpython/issues/152079
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
awaiting review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20review%22
Jun 24, 2026https://github.com/python/cpython/pull/152087#event-27148785837
https://github.com/tonghuaroot
pythongh-152079https://github.com/python/cpython/issues/152079
: Fix C datetime.fromisoformat() dropping sub-second U…https://github.com/python/cpython/pull/152087/commits/02bcc3a04640e9606eb389b5997bbab9c9921ef2
02bcc3ahttps://github.com/python/cpython/pull/152087/commits/02bcc3a04640e9606eb389b5997bbab9c9921ef2
https://github.com/StanFromIreland
StanFromIrelandhttps://github.com/StanFromIreland
Jun 24, 2026 https://github.com/python/cpython/pull/152087#pullrequestreview-4565723519
View reviewed changes https://github.com/python/cpython/pull/152087/files/02bcc3a04640e9606eb389b5997bbab9c9921ef2
StanFromIrelandhttps://github.com/StanFromIreland
https://github.com/python/cpython/pull/152087#pullrequestreview-4565723519
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/152087
Modules/_datetimemodule.chttps://github.com/python/cpython/pull/152087/files/02bcc3a04640e9606eb389b5997bbab9c9921ef2#diff-3ee250e3806e884518fd872e9148baf532de6ec54c1cdb4e7679fbb2869d9c47
Please reload this pagehttps://github.com/python/cpython/pull/152087
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
awaiting merge https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20merge%22
awaiting review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20review%22
Jun 24, 2026https://github.com/python/cpython/pull/152087#event-27164570009
https://github.com/StanFromIreland
Fix comment toohttps://github.com/python/cpython/pull/152087/commits/fbd5f0f5bb2565c41bb1ee57cf2e336e7b8000f8
fbd5f0fhttps://github.com/python/cpython/pull/152087/commits/fbd5f0f5bb2565c41bb1ee57cf2e336e7b8000f8
https://github.com/StanFromIreland
StanFromIrelandhttps://github.com/StanFromIreland
needs backport to 3.13 https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22needs%20backport%20to%203.13%22
needs backport to 3.14 https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22needs%20backport%20to%203.14%22
needs backport to 3.15 https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22needs%20backport%20to%203.15%22
Jun 25, 2026https://github.com/python/cpython/pull/152087#event-27186992317
https://github.com/StanFromIreland
StanFromIrelandhttps://github.com/StanFromIreland
6f9c76dhttps://github.com/python/cpython/commit/6f9c76d8d86997012acfa09fed05396aa9349bbf
Jun 25, 2026https://github.com/python/cpython/pull/152087#event-27187016091
Please reload this pagehttps://github.com/python/cpython/pull/152087
https://github.com/apps/miss-islington-app
miss-islington-apphttps://github.com/apps/miss-islington-app
Jun 25, 2026https://github.com/python/cpython/pull/152087#issuecomment-4797659337
@tonghuaroothttps://github.com/tonghuaroot
@StanFromIrelandhttps://github.com/StanFromIreland
Please reload this pagehttps://github.com/python/cpython/pull/152087
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
awaiting merge https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20merge%22
Jun 25, 2026https://github.com/python/cpython/pull/152087#event-27187018587
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
Jun 25, 2026https://github.com/python/cpython/pull/152087#issuecomment-4797661237
GH-152174https://github.com/python/cpython/pull/152174
3.15 branchhttps://github.com/python/cpython/tree/3.15
Please reload this pagehttps://github.com/python/cpython/pull/152087
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
needs backport to 3.15 https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22needs%20backport%20to%203.15%22
Jun 25, 2026https://github.com/python/cpython/pull/152087#event-27187028923
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
Jun 25, 2026https://github.com/python/cpython/pull/152087#issuecomment-4797661857
GH-152175https://github.com/python/cpython/pull/152175
3.14 branchhttps://github.com/python/cpython/tree/3.14
Please reload this pagehttps://github.com/python/cpython/pull/152087
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
needs backport to 3.14 https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22needs%20backport%20to%203.14%22
Jun 25, 2026https://github.com/python/cpython/pull/152087#event-27187031968
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
Jun 25, 2026https://github.com/python/cpython/pull/152087#issuecomment-4797662699
GH-152176https://github.com/python/cpython/pull/152176
3.13 branchhttps://github.com/python/cpython/tree/3.13
Please reload this pagehttps://github.com/python/cpython/pull/152087
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
needs backport to 3.13 https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22needs%20backport%20to%203.13%22
Jun 25, 2026https://github.com/python/cpython/pull/152087#event-27187035812
https://github.com/StanFromIreland
StanFromIrelandhttps://github.com/StanFromIreland
Jun 25, 2026https://github.com/python/cpython/pull/152087#issuecomment-4797681517
Please reload this pagehttps://github.com/python/cpython/pull/152087
StanFromIrelandhttps://github.com/StanFromIreland
Jun 25, 2026 https://github.com/python/cpython/pull/152087#ref-commit-c5ac825
https://github.com/miss-islington
https://github.com/tonghuaroot
https://github.com/StanFromIreland
[3.13]https://github.com/python/cpython/commit/c5ac8251b535cc2f282af1d428855bc52b5b5645
gh-152079https://github.com/python/cpython/issues/152079
: Fixhttps://github.com/python/cpython/commit/c5ac8251b535cc2f282af1d428855bc52b5b5645
_datetime.fromisoformat()https://github.com/python/cpython/commit/c5ac8251b535cc2f282af1d428855bc52b5b5645
mishandling a sub-s…https://github.com/python/cpython/commit/c5ac8251b535cc2f282af1d428855bc52b5b5645
c5ac825https://github.com/python/cpython/commit/c5ac8251b535cc2f282af1d428855bc52b5b5645
GH-152087https://github.com/python/cpython/pull/152087
#152176https://github.com/python/cpython/pull/152176
6f9c76dhttps://github.com/python/cpython/commit/6f9c76d8d86997012acfa09fed05396aa9349bbf
StanFromIrelandhttps://github.com/StanFromIreland
Jun 25, 2026 https://github.com/python/cpython/pull/152087#ref-commit-cf8051b
https://github.com/miss-islington
https://github.com/tonghuaroot
https://github.com/StanFromIreland
[3.15]https://github.com/python/cpython/commit/cf8051b2e782e626062bf85e223b46e92b1ab2bb
gh-152079https://github.com/python/cpython/issues/152079
: Fixhttps://github.com/python/cpython/commit/cf8051b2e782e626062bf85e223b46e92b1ab2bb
_datetime.fromisoformat()https://github.com/python/cpython/commit/cf8051b2e782e626062bf85e223b46e92b1ab2bb
mishandling a sub-s…https://github.com/python/cpython/commit/cf8051b2e782e626062bf85e223b46e92b1ab2bb
cf8051bhttps://github.com/python/cpython/commit/cf8051b2e782e626062bf85e223b46e92b1ab2bb
GH-152087https://github.com/python/cpython/pull/152087
#152174https://github.com/python/cpython/pull/152174
6f9c76dhttps://github.com/python/cpython/commit/6f9c76d8d86997012acfa09fed05396aa9349bbf
StanFromIrelandhttps://github.com/StanFromIreland
Jun 25, 2026 https://github.com/python/cpython/pull/152087#ref-commit-6e7de86
https://github.com/miss-islington
https://github.com/tonghuaroot
https://github.com/StanFromIreland
[3.14]https://github.com/python/cpython/commit/6e7de8670c7375c71e5a37e31467fc0f4c3cbe7f
gh-152079https://github.com/python/cpython/issues/152079
: Fixhttps://github.com/python/cpython/commit/6e7de8670c7375c71e5a37e31467fc0f4c3cbe7f
_datetime.fromisoformat()https://github.com/python/cpython/commit/6e7de8670c7375c71e5a37e31467fc0f4c3cbe7f
mishandling a sub-s…https://github.com/python/cpython/commit/6e7de8670c7375c71e5a37e31467fc0f4c3cbe7f
6e7de86https://github.com/python/cpython/commit/6e7de8670c7375c71e5a37e31467fc0f4c3cbe7f
GH-152087https://github.com/python/cpython/pull/152087
#152175https://github.com/python/cpython/pull/152175
6f9c76dhttps://github.com/python/cpython/commit/6f9c76d8d86997012acfa09fed05396aa9349bbf
https://github.co/hiddenchars
https://github.com/python/cpython/pull/{{ revealButtonHref }}
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F152087
https://github.com/StanFromIreland
StanFromIreland https://github.com/StanFromIreland
https://github.com/python/cpython/pull/152087/files/02bcc3a04640e9606eb389b5997bbab9c9921ef2
https://github.com/pganssle
pganssle https://github.com/pganssle
Please reload this pagehttps://github.com/python/cpython/pull/152087
datetime.fromisoformat() (C) drops the sub-second part of a UTC offset, breaking round-trips https://github.com/python/cpython/issues/152079
Please reload this pagehttps://github.com/python/cpython/pull/152087
https://github.com/tonghuaroot
https://github.com/StanFromIreland
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.