Skip to content
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

Fix parsing of ISO times #1018

Merged
merged 1 commit into from
Feb 21, 2022
Merged

Conversation

nickburlett
Copy link
Contributor

hackage-mirror attempts to set the uploadTime in a format like "2021-12-11T12:24:35Z", but this fails with parsing using "%c". If the parse fails, try "%Y-%m-%dT%H:%M:%SZ"

Add tests for both setting and retrieving the upload-time.

Fixes #1017

hackage-mirror attempts to set the uploadTime in a format like "2021-12-11T12:24:35Z", but this fails with parsing using "%c". If the parse fails, try "%Y-%m-%dT%H:%M:%SZ"

Add tests for both setting and retrieving the upload-time.
@gbaz gbaz merged commit d179da8 into haskell:master Feb 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Server and Client disagree on upload-time format
2 participants