Skip to content

gh-133125: Clarify ZipInfo.date_time attribute documentation #136082

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Aug 22, 2025

Conversation

KentaroJay
Copy link
Contributor

@KentaroJay KentaroJay commented Jun 28, 2025

@KentaroJay
Copy link
Contributor Author

This is how it looks like
image

@KentaroJay KentaroJay marked this pull request as ready for review June 28, 2025 18:44
Copy link
Member

@emmatyping emmatyping left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@KentaroJay thanks for the PR! Would you be interested in adding information about the way CPython interprets the timezone of the datetime (i.e. the time is interpreted as the local timezone). This was brought up in #123059.

I can do that in a follow up if you'd prefer to keep this focused on just covering the source of the timestamp information.

@KentaroJay
Copy link
Contributor Author

@emmatyping
Hello! Thanks for the comment and the review. Sure, I will work on it! Will do in like a couple of days ✅

@KentaroJay
Copy link
Contributor Author

Hi @emmatyping !
I just added some fix. Please check it out 🙏

@KentaroJay KentaroJay requested a review from emmatyping July 29, 2025 02:20
Copy link
Member

@emmatyping emmatyping left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One suggestion on wording but I think this looks good, thank you for expanding these docs!

Co-authored-by: Emma Smith <emma@emmatyping.dev>
@emmatyping emmatyping merged commit 282e885 into python:main Aug 22, 2025
25 checks passed
@github-project-automation github-project-automation bot moved this from Todo to Done in Docs PRs Aug 22, 2025
@emmatyping emmatyping added needs backport to 3.13 bugs and security fixes needs backport to 3.14 bugs and security fixes labels Aug 22, 2025
@miss-islington-app
Copy link

Thanks @KentaroJay for the PR, and @emmatyping for merging it 🌮🎉.. I'm working now to backport this PR to: 3.13.
🐍🍒⛏🤖

@miss-islington-app
Copy link

Thanks @KentaroJay for the PR, and @emmatyping for merging it 🌮🎉.. I'm working now to backport this PR to: 3.14.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Aug 22, 2025
…ythonGH-136082)

Specifically, clarify that ZipInfo.date_time pulls the datetime information from the central directory, and that times are interpreted as local time.
(cherry picked from commit 282e885)

Co-authored-by: Kentaro Jay Takahashi <64148935+KentaroJay@users.noreply.github.com>
Co-authored-by: Emma Smith <emma@emmatyping.dev>
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Aug 22, 2025
…ythonGH-136082)

Specifically, clarify that ZipInfo.date_time pulls the datetime information from the central directory, and that times are interpreted as local time.
(cherry picked from commit 282e885)

Co-authored-by: Kentaro Jay Takahashi <64148935+KentaroJay@users.noreply.github.com>
Co-authored-by: Emma Smith <emma@emmatyping.dev>
@bedevere-app
Copy link

bedevere-app bot commented Aug 22, 2025

GH-138076 is a backport of this pull request to the 3.13 branch.

@bedevere-app bedevere-app bot removed the needs backport to 3.13 bugs and security fixes label Aug 22, 2025
@bedevere-app
Copy link

bedevere-app bot commented Aug 22, 2025

GH-138077 is a backport of this pull request to the 3.14 branch.

@bedevere-app bedevere-app bot removed the needs backport to 3.14 bugs and security fixes label Aug 22, 2025
emmatyping added a commit that referenced this pull request Aug 23, 2025
…H-136082) (#138076)

gh-133125: Clarify ZipInfo.date_time attribute documentation (GH-136082)

Specifically, clarify that ZipInfo.date_time pulls the datetime information from the central directory, and that times are interpreted as local time.
(cherry picked from commit 282e885)

Co-authored-by: Kentaro Jay Takahashi <64148935+KentaroJay@users.noreply.github.com>
Co-authored-by: Emma Smith <emma@emmatyping.dev>
dr-carlos pushed a commit to dr-carlos/cpython that referenced this pull request Aug 23, 2025
…ython#136082)

Specifically, clarify that ZipInfo.date_time pulls the datetime information from the central directory, and that times are interpreted as local time.

Co-authored-by: Emma Smith <emma@emmatyping.dev>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Documentation in the Doc dir skip news
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants