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

Bug#974911: debian-policy: Date in documentation varies with timezone



On Mon, Nov 16, 2020 at 04:02:54AM -0800, Vagrant Cascadian wrote:
> While a consistent time was returned, depending on the timezone
> the package was built in can cause the date to vary:
> diff --git a/Makefile b/Makefile
> -DATE      := $(shell date -d '@$(TIMESTAMP)' +'%Y-%m-%d')
> +DATE      := $(shell date --utc -d '@$(TIMESTAMP)' +'%Y-%m-%d')

as debian-policy and developers-reference share quite some code I just checked
the Makefile of developers-reference and to my joy I found:

DATE      ?= $(shell date -u -d '@$(TIMESTAMP)' +'%Y-%m-%d')

:)


-- 
cheers,
	Holger

 ⢀⣴⠾⠻⢶⣦⠀
 ⣾⠁⢠⠒⠀⣿⡁       holger@(debian|reproducible-builds|layer-acht).org
 ⢿⡄⠘⠷⠚⠋⠀ PGP fingerprint: B8BF 5413 7B09 D35C F026 FE9D 091A B856 069A AA1C
 ⠈⠳⣄

If secure encryption is outlawed, only criminals will have it.

Attachment: signature.asc
Description: PGP signature


Reply to: