Skip to content

gh-141431: Preserve UTC semantics for ZIP timestamps#143868

Closed
priyanshu2282-cyber wants to merge 3 commits intopython:mainfrom
priyanshu2282-cyber:fix-zipapp-mtime-utc
Closed

gh-141431: Preserve UTC semantics for ZIP timestamps#143868
priyanshu2282-cyber wants to merge 3 commits intopython:mainfrom
priyanshu2282-cyber:fix-zipapp-mtime-utc

Conversation

@priyanshu2282-cyber
Copy link
Copy Markdown
Contributor

@priyanshu2282-cyber priyanshu2282-cyber commented Jan 15, 2026

Zip file timestamps don’t store timezone information. Using local time can make files inside zipapps look stale when moved between timezones. This change treats DOS timestamps as UTC while keeping zipimport safe during startup.

@priyanshu2282-cyber
Copy link
Copy Markdown
Contributor Author

After further investigation, this change alters zipimport timestamp semantics and affects multiple existing tests that rely on current local-time behavior. Fixing this properly would require a broader discussion and coordinated test updates, so I’m closing this PR for now.

@priyanshu2282-cyber priyanshu2282-cyber deleted the fix-zipapp-mtime-utc branch January 15, 2026 14:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant