Title: gh-141431: interpret ZIP timestamps as UTC by VanshAgarwal24036 · Pull Request #143953 · python/cpython · GitHub
Open Graph Title: gh-141431: interpret ZIP timestamps as UTC by VanshAgarwal24036 · Pull Request #143953 · python/cpython
X Title: gh-141431: interpret ZIP timestamps as UTC by VanshAgarwal24036 · Pull Request #143953 · python/cpython
Description: ZIP (DOS) timestamps do not include timezone information, but CPython currently interprets them as local time via time.mktime(). This can cause .pyc files to be incorrectly marked as stale when a zipapp is created and run in different timezones. This change uses calendar.timegm() so ZIP source timestamps are interpreted with UTC semantics, matching .pyc timestamp handling. Fixes gh-141431
Open Graph Description: ZIP (DOS) timestamps do not include timezone information, but CPython currently interprets them as local time via time.mktime(). This can cause .pyc files to be incorrectly marked as stale when a z...
X Description: ZIP (DOS) timestamps do not include timezone information, but CPython currently interprets them as local time via time.mktime(). This can cause .pyc files to be incorrectly marked as stale when a z...
Opengraph URL: https://github.com/python/cpython/pull/143953
X: @github
Domain: patch-diff.githubusercontent.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:1cf6a607-4e1b-bd68-4113-afed041a2507 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 92F8:37314B:F1F760:1409764:696EB847 |
| html-safe-nonce | 0d99c483afbf241f8e0699ac2ffdc352dce8fa3da02ba255870a79bb82b8954a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MkY4OjM3MzE0QjpGMUY3NjA6MTQwOTc2NDo2OTZFQjg0NyIsInZpc2l0b3JfaWQiOiI0NjA5Nzc3NDE4MzM0Mjg3OTQzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | afa1183196700ff05e90255579fe0a5a8a6ff70024af1082d6b656bf81322e22 |
| hovercard-subject-tag | pull_request:3183485511 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,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/python/cpython/pull/143953/files |
| twitter:image | https://avatars.githubusercontent.com/u/148854295?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/148854295?s=400&v=4 |
| og:image:alt | ZIP (DOS) timestamps do not include timezone information, but CPython currently interprets them as local time via time.mktime(). This can cause .pyc files to be incorrectly marked as stale when a z... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | b278ad162d35332b6de714dfb005de04386c4d92df6475522bef910f491a35ee |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 39aed5006635ab6f45e6b77d23e73b08a00272a3 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width