[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#872337: Release file generates "W: Invalid 'Date' entry in Release file"



On Wed, Aug 16, 2017 at 03:02:50PM +0200, Luca Falavigna wrote:
> Generating a (In)Release file with apt-ftparchive, I get this date format:
> Date: Tuesday, 15 August 2017 23:16:52

Are you _*SURE*_ this is generated by apt-ftparchive and not some
handwritten Release file?

There is some code indirection involved here, but the format should be:
    %a, %d %b %Y %H:%M:%S

That is basically the same as yours, but with %a/%b instead of
%A/%B – BUT on top of this a timezone is added to the string
(either +0000 or UTC, depending on settings).

See also:
https://wiki.debian.org/DebianRepository/Format#Date.2C_Valid-Until


And indeed if I run apt-ftparchive:
$ mkdir /tmp/aptftptest
$ cd /tmp/aptftptest
$ apt-ftparchive release .
Date: Wed, 16 Aug 2017 14:35:14 +0000
MD5Sum:
SHA1:
SHA256:
SHA512:
$

(beside that our test framework uses it, too, so that should work™)


Best regards

David Kalnischkies

Attachment: signature.asc
Description: PGP signature


Reply to: