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
Crash on opening push dialog/save: The DateTimeOffset specified cannot be converted into a Zip file timestamp.' #269
Comments
mmm same for save and with a new package. Setting current culture on en-US won't help (or maybe too late) @onovotny any idea? |
Is this a localization thing? Is there a sample? What's the DateTimeOffset that's failing? Isn't there a new |
I don't know where there is a DateTimeOffset. I'm debugging it |
Here it is: I stubbed it out, guess we need to populate it. |
think so, seeing this call stack:
|
any idea if we could use as we only have a partial path of course |
I think that should work long as that doesn't throw. AFAIK, the base is set to the directory the nuspec file is in. NPE doesn't support specifying an alternate base directory. |
it gives also minValue. I could read the content of the file (e.g. dll) as stream in
but that doesn't have a lastWriteTime of course. |
I think i'm almost there |
…timestamp remember LastWriteTime when loading the package fixes #269
304NotModified + this still appears to be an issue when creating a new package with several files and folders. Upon saving (as) the program will hang and eventually respond with "DateTimeOffset specified cannot be converted into a zip file timestamp. It seems to work fine with a smaller amount of files and/or saving the initial package with a smaller amount of files and adding more in after each save. I have an older stable release in my repository which does not report this issue. |
@ItsMrQ can you repro on the current CI version? The one that has these changes has not been in a stable release yet. Otherwise, please open a new issue with a repro. Thanks! |
I can confirm that the error still happens on the new CI version. I can't use NPE anymore. It seems to have affected the whole program |
@genyx can you share a repro? |
Unfortunally, i don't know... I start NPE (used the CI setup on the main github page) leave the metadata as default, add a lib folder, add an empty net45 folder and click save. It does not save and says the error like above. Latest Windows 10, .NET 4.7.1 installed (which i was trying to create a package for) |
Thanks, should be fixed in #325 |
Yes, that fixed it for me. thanks |
I got this issue when I had an empty folder under a net folder under lib. |
My solution: Run the below Powershell script.
|
Problem: When you install Microsoft.EntityFrameworkCore.Sqlite 3.1.0 you can see dlls without modify date. It cause to "The DateTimeOffset specified cannot be converted into a Zip file timestamp" when you try to pack my program. Solution: Update lib version related problem NuGetPackageExplorer/NuGetPackageExplorer#269 OrchardCMS/OrchardCore#4477 NuGet/Home#7001
Type (choose one):
NPE version: (e.g. 3.12) 3.25
Installed from: source - 6fb8f2638206af4e2a98ffcc71f450ef3636d1b3
In case of a BUG:
Nlog 4.4.12
steps:
extra info:
The text was updated successfully, but these errors were encountered: