-
Notifications
You must be signed in to change notification settings - Fork 644
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
[NuGet.org Bug]: Package counter-signature uses incorrect time (time zone bug?) #9780
Comments
The NuGet package is made on a standard GitHub Actions runner, which I assume has its time zone set to UTC. When I look at the build time in local time (PST), it's 3:27pm: The NuGet counter-signature happened at 3:38pm PST, and I assume it's recorded in PST and not UTC. It's possible that ZIP files don't store time zone, in which case this isn't a bug at all, just an unavoidable inconsistency. |
https://en.wikipedia.org/wiki/ZIP_(file_format)
Alright then, issue closed. 😂 |
FYI since NuGet/NuGet.Client#3793 nuget explicitly stores these timestamps in UTC inside the .zip and converts back and forth to local timezone during pack/unpack. |
@akoeplinger That does not appear to be related to my bug, since that's a NuGet client issue, and my issue is related to the counter-signing process on the NuGet server. |
@bradwilson yeah but I'd assume all NuGet code creating/modifying packages should obey the same rule i.e. treat the zip file timestamp as UTC. |
Impact
Other
Describe the bug
While investigating some packaging related issues, I discovered that NuGet has what appears to be a time zone related bug with the counter-signing process. The updated signature appears to be in the past.
Here is the date/time of the .signature.p7s file in a NuGet package that I uploaded:
And here is the date/time of the .signature.p7s file in the version NuGet offers for download:
I'm not aware of any impact this has other than correctness (i.e., I am unaware of this causing any problems with the NuGet client), thus I marked the Impact as "Other".
Repro Steps
For my package in question, here are my two versions:
Expected Behavior
Date/time should be correct.
Screenshots
No response
Additional Context and logs
No response
The text was updated successfully, but these errors were encountered: