-
Notifications
You must be signed in to change notification settings - Fork 206
Closed
Description
When running hackage-mirror, the client code attempts to set the date in ISO 8601 format (%Y-%m-%dT%H:%M:%SZ), but the server expects a locale-based string (%c) as input. This leads to incorrectly mirrored upload-times on the server, and Could not parse upload time errors from the client.
Server code:
| case parseTimeMaybe "%c" (unpackUTF8 timeContent) of |
Client code:
hackage-server/Distribution/Client/Mirror/Repo/Hackage2.hs
Lines 114 to 116 in eadf543
| putPackageUploadTime time = do | |
| let timeStr = formatTime defaultTimeLocale "%Y-%m-%dT%H:%M:%SZ" time | |
| requestPUT (baseURI <//> "upload-time") "text/plain" (packUTF8 timeStr) |
Metadata
Metadata
Assignees
Labels
No labels