René's URL Explorer Experiment


Title: Handle tz-aware datetimes in `naturalday()` and `naturaldate()` by bysiber · Pull Request #297 · python-humanize/humanize · GitHub

Open Graph Title: Handle tz-aware datetimes in `naturalday()` and `naturaldate()` by bysiber · Pull Request #297 · python-humanize/humanize

X Title: Handle tz-aware datetimes in `naturalday()` and `naturaldate()` by bysiber · Pull Request #297 · python-humanize/humanize

Description: Python humanize functions. Contribute to python-humanize/humanize development by creating an account on GitHub.

Open Graph Description: Fixes #152 When a tz-aware datetime is passed to naturalday() or naturaldate(), the functions now compute "today" in the datetime's timezone instead of using the system's local da...

X Description: Fixes #152 When a tz-aware datetime is passed to naturalday() or naturaldate(), the functions now compute "today" in the datetime's timezone instead of using the system&am...

Opengraph URL: https://github.com/python-humanize/humanize/pull/297

X: @github

direct link

Domain: github.com

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:9e9b1327-bbba-0d93-cffc-fa5ff4412734
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idEB5A:36864D:4188B9:58F8C8:6A55992A
html-safe-noncefb239525fff717d7fe6949581f935c53bad5165968cdb4904ac128c4e89db8b6
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQjVBOjM2ODY0RDo0MTg4Qjk6NThGOEM4OjZBNTU5OTJBIiwidmlzaXRvcl9pZCI6IjU2MDYzODg5MjI1Njc3Mjc0MDIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmace66f345abd1deae2c65cc981d6064f492c00144ad046e7e75c2828e57409f8a6
hovercard-subject-tagpull_request:3311179428
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-humanize/humanize/297/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/740b968fd2b971288606684b34bee4a39a90d84dc75f5868c2991cb43771a6e0/python-humanize/humanize/pull/297
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/740b968fd2b971288606684b34bee4a39a90d84dc75f5868c2991cb43771a6e0/python-humanize/humanize/pull/297
og:image:altFixes #152 When a tz-aware datetime is passed to naturalday() or naturaldate(), the functions now compute "today" in the datetime's timezone instead of using the system's local da...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamebysiber
hostnamegithub.com
expected-hostnamegithub.com
Noneb5665c84831ed9ac4fb79519c16c9c5580ba8092fb8bb6e3e72972ec7197348e
turbo-cache-controlno-cache
go-importgithub.com/python-humanize/humanize git https://github.com/python-humanize/humanize.git
octolytics-dimension-user_id62149795
octolytics-dimension-user_loginpython-humanize
octolytics-dimension-repository_id466683324
octolytics-dimension-repository_nwopython-humanize/humanize
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id466683324
octolytics-dimension-repository_network_root_nwopython-humanize/humanize
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
releaseaa21baa44893467b0b640d0300538f84ca8c475b
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python-humanize/humanize/pull/297#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython-humanize%2Fhumanize%2Fpull%2F297
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
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
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://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
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython-humanize%2Fhumanize%2Fpull%2F297
Sign up https://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-humanize%2Fhumanize
Reloadhttps://github.com/python-humanize/humanize/pull/297
Reloadhttps://github.com/python-humanize/humanize/pull/297
Reloadhttps://github.com/python-humanize/humanize/pull/297
Please reload this pagehttps://github.com/python-humanize/humanize/pull/297
python-humanize https://github.com/python-humanize
humanizehttps://github.com/python-humanize/humanize
Please reload this pagehttps://github.com/python-humanize/humanize/pull/297
Notifications https://github.com/login?return_to=%2Fpython-humanize%2Fhumanize
Fork 116 https://github.com/login?return_to=%2Fpython-humanize%2Fhumanize
Star 736 https://github.com/login?return_to=%2Fpython-humanize%2Fhumanize
Code https://github.com/python-humanize/humanize
Issues 12 https://github.com/python-humanize/humanize/issues
Pull requests 13 https://github.com/python-humanize/humanize/pulls
Actions https://github.com/python-humanize/humanize/actions
Security and quality 0 https://github.com/python-humanize/humanize/security
Insights https://github.com/python-humanize/humanize/pulse
Code https://github.com/python-humanize/humanize
Issues https://github.com/python-humanize/humanize/issues
Pull requests https://github.com/python-humanize/humanize/pulls
Actions https://github.com/python-humanize/humanize/actions
Security and quality https://github.com/python-humanize/humanize/security
Insights https://github.com/python-humanize/humanize/pulse
hugovkhttps://github.com/hugovk
python-humanize:mainhttps://github.com/python-humanize/humanize/tree/main
bysiber:fix-naturaldate-tz-awarehttps://github.com/bysiber/humanize/tree/fix-naturaldate-tz-aware
Conversationhttps://github.com/python-humanize/humanize/pull/297
Commits1 (1)https://github.com/python-humanize/humanize/pull/297/commits
Checkshttps://github.com/python-humanize/humanize/pull/297/checks
Files changedhttps://github.com/python-humanize/humanize/pull/297/files
Handle tz-aware datetimes in naturalday() and naturaldate()https://github.com/python-humanize/humanize/pull/297#top
hugovkhttps://github.com/hugovk
python-humanize:mainhttps://github.com/python-humanize/humanize/tree/main
bysiber:fix-naturaldate-tz-awarehttps://github.com/bysiber/humanize/tree/fix-naturaldate-tz-aware
https://github.com/bysiber
bysiberhttps://github.com/bysiber
Feb 21, 2026https://github.com/python-humanize/humanize/pull/297#issue-3972495143
#152https://github.com/python-humanize/humanize/issues/152
Please reload this pagehttps://github.com/python-humanize/humanize/pull/297
https://github.com/bysiber
fix: handle tz-aware datetimes in naturalday and naturaldatehttps://github.com/python-humanize/humanize/pull/297/commits/b7aa0a2909690c39ef76502c77501c2a7845cf73
b7aa0a2https://github.com/python-humanize/humanize/pull/297/commits/b7aa0a2909690c39ef76502c77501c2a7845cf73
python-humanize#152https://github.com/python-humanize/humanize/issues/152
https://github.com/hugovk
hugovkhttps://github.com/hugovk
changelog: Fixed https://github.com/python-humanize/humanize/issues?q=state%3Aopen%20label%3A%22changelog%3A%20Fixed%22
Feb 22, 2026https://github.com/python-humanize/humanize/pull/297#event-22979927148
https://github.com/apps/codecov
codecovhttps://github.com/apps/codecov
Feb 22, 2026https://github.com/python-humanize/humanize/pull/297#issuecomment-3940776435
Please reload this pagehttps://github.com/python-humanize/humanize/pull/297
Codecovhttps://app.codecov.io/gh/python-humanize/humanize/pull/297?dropdown=coverage&src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=python-humanize
471cd9bhttps://app.codecov.io/gh/python-humanize/humanize/commit/471cd9b3492318ef639973d29ba929ca458068db?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=python-humanize
b7aa0a2https://app.codecov.io/gh/python-humanize/humanize/commit/b7aa0a2909690c39ef76502c77501c2a7845cf73?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=python-humanize
Flaghttps://app.codecov.io/gh/python-humanize/humanize/pull/297/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=python-humanize
macos-latesthttps://app.codecov.io/gh/python-humanize/humanize/pull/297/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=python-humanize
ubuntu-latesthttps://app.codecov.io/gh/python-humanize/humanize/pull/297/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=python-humanize
windows-latesthttps://app.codecov.io/gh/python-humanize/humanize/pull/297/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=python-humanize
Click herehttps://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=python-humanize#carryforward-flags-in-the-pull-request-comment
☔ View full report in Codecov by Sentryhttps://app.codecov.io/gh/python-humanize/humanize/pull/297?dropdown=coverage&src=pr&el=continue&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=python-humanize
Share it herehttps://about.codecov.io/codecov-pr-comment-feedback/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=python-humanize
Test Analyticshttps://docs.codecov.com/docs/test-analytics
Please reload this pagehttps://github.com/python-humanize/humanize/pull/297
https://github.com/hugovk
hugovkhttps://github.com/hugovk
Feb 22, 2026 https://github.com/python-humanize/humanize/pull/297#ref-pullrequest-3955971225
Fix naturalday/naturaldate wrong answer for tz-aware datetimes #296 https://github.com/python-humanize/humanize/pull/296
https://github.com/hugovk
hugovkhttps://github.com/hugovk
Feb 22, 2026https://github.com/python-humanize/humanize/pull/297#issuecomment-3940779350
#296https://github.com/python-humanize/humanize/pull/296
Please reload this pagehttps://github.com/python-humanize/humanize/pull/297
https://github.com/hugovk
hugovkhttps://github.com/hugovk
a47a89ehttps://github.com/python-humanize/humanize/commit/a47a89ea9111a5eaba138c391e8a564134a15c60
Feb 22, 2026https://github.com/python-humanize/humanize/pull/297#event-22980991012
Please reload this pagehttps://github.com/python-humanize/humanize/pull/297
https://github.com/hugovk
hugovkhttps://github.com/hugovk
Apr 11, 2026https://github.com/python-humanize/humanize/pull/297#event-24404837858
https://github.com/hugovk
hugovkhttps://github.com/hugovk
Jun 30, 2026https://github.com/python-humanize/humanize/pull/297#event-27388101586
https://github.co/hiddenchars
https://github.com/python-humanize/humanize/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-humanize%2Fhumanize%2Fpull%2F297
changelog: Fixed https://github.com/python-humanize/humanize/issues?q=state%3Aopen%20label%3A%22changelog%3A%20Fixed%22
naturaldate() gives the wrong answer for tz-aware datetimes https://github.com/python-humanize/humanize/issues/152
Please reload this pagehttps://github.com/python-humanize/humanize/pull/297
https://github.com/bysiber
https://github.com/hugovk
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.