Really test reproducibly
- Use $SOURCE_DATE_EPOCH - Force a default timezone
This commit is contained in:
parent
4c69c29465
commit
3f3b0e68c4
|
@ -26,8 +26,8 @@ DEBUG="_debug"
|
|||
#date
|
||||
_date()
|
||||
{
|
||||
if [ -n "$SOURCE_EPOCH" ]; then
|
||||
$DATE -d "@$SOURCE_EPOCH" '+%a %b %d %T %Z %Y'
|
||||
if [ -n "$SOURCE_DATE_EPOCH" ]; then
|
||||
TZ=UTC $DATE -d "@$SOURCE_DATE_EPOCH" '+%a %b %d %T %Z %Y'
|
||||
else
|
||||
$DATE
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue
Block a user