-
Notifications
You must be signed in to change notification settings - Fork 17
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
UTC date in zip archive #361
Conversation
I'm not sure this makes sense: if the package date is ahead of the local date when you build docs, it could well fail. |
What is the link between the |
For example when |
Comparing times (or dates) in possibly different time zones gives undefined result, if you don't know the time zones in advance. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm happy with the doc change - but I'd like to see what Marcel thinks before moving forward, as the zip code is his.
local concat = table.concat | ||
local open = io.open | ||
local osdate = os.date | ||
local pack = string.pack | ||
local concat = table.concat | ||
local open = io.open | ||
local os_date = os.date | ||
local os_time = os.time | ||
local pack = string.pack | ||
local setmetatable = setmetatable | ||
local iotype = io.type | ||
local iotype = io.type |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not really seeing the need for this but at the same time I have no strong objection
local t = osdate('*t', unix) | ||
local t = os_date('!*t', unix) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This one is a job of @zauguin
Not sure why this is closed, but I don't have strong opinions on this. I'm weakly in favor of the change, but I'm guessing we should ask CTAN what they usually assume the times to mean in uploads. |
The libzip documentation is very clear on the subject. |
The libzip file you linked only documents The function you propose to change is for the legacy timestamps. Their specification in APPNOTE says:
I wouldn't refer to UTC as a "time format" but in any case it explicitly does not specify UTC for these. Also MS-DOS times are traditionally in the local timezone. |
Thanks for the clarification. |
avoid local date in tagging.
It assumes that the
os.date
is not buggy.Fix a bug in l3build-zip